【问题标题】:SSH protocol v.1 is no longer supported不再支持 SSH 协议 v.1
【发布时间】:2021-02-25 23:19:09
【问题描述】:

像多年来我每天都在做的那样尝试将文件 scp 到我的服务器...今天遇到了这个奇怪的错误:

client$ scp filename.file server:/path/to/somewhere/
SSH protocol v.1 is no longer supported
client$ echo $?
255

运行此命令后,该文件不会像正常情况那样显示在我的服务器上。

此错误仅出现在 scp 命令上。使用 ssh 进入我的服务器工作正常。

有人见过这个吗?我该如何调试呢?以下是一些版本信息:

client$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f  31 Mar 2020
client$ apt show openssl
Package: openssl
Version: 1.1.1f-1ubuntu2
server$ apt show openssh-server
Package: openssh-server
Version: 1:7.2p2-4ubuntu2.10
server$ sshd -V
unknown option -- V
OpenSSH_7.2p2 Ubuntu-4ubuntu2.10, OpenSSL 1.0.2g  1 Mar 2016

(请注意,为了清楚起见,我添加了主机名“客户端”和“服务器”)

在我的 sshd_config 中,它显示 Protocol 2

server$ cat /etc/ssh/sshd_config | grep Protocol
Protocol 2

我在我的服务器上运行 Ubuntu 16.04,到今天为止应该会有维护更新。

如果我应该运行任何其他操作,请告诉我。服务器只是本地网络,但我仍然想确保它已加固。

【问题讨论】:

    标签: scp openssh


    【解决方案1】:

    呃,这是一个错字...为其他在此问题上撞墙的人继续发帖,因为我无法通过谷歌搜索找到有关此错误消息的任何信息。

    它不在 ssh 命令中(出于隐私考虑,删除了各个部分),但我提供了一个端口:

    scp -p3122 file server:/path/

    但它确实应该是:

    scp -P3122 file server:/path/

    (使用大写“P”)

    【讨论】:

    • 这解决了我的问题,很高兴知道,因为我刚刚发现 ssh 是相反的并且需要小写 p (ssh -p),否则它会抱怨不支持的协议!
    • @abelito 是的,当我发布此内容时,我觉得自己很愚蠢,但我知道其他人会遇到同样的问题,所以我保留了这个问题。
    【解决方案2】:

    我对命令“SSH”有同样的信息。 我解决了这个问题:仅当您使用 3 个元素时才有效: ssh server -l user -p port .. 派对继续……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-02
      相关资源
      最近更新 更多