【发布时间】:2015-07-31 08:07:17
【问题描述】:
我正在通过 Mac 终端在远程服务器上工作,因为我将它从 10.5 更新到 OSX 10.10,所以我每次尝试从服务器到我的计算机 scp 时都会收到此消息:
ssh_exchange_identification: Connection closed by remote host
lost connection
如果我向后执行 scp(从 mac 复制到服务器)它工作得很好,如果我在另一个 mac 上执行它也工作得很好。
如果我做一个冗长的scp,它会给我这个:
Executing: program /usr/bin/ssh host xx.xx.xx.x, user User, command scp -v -t /Users/User
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx.xx.xx.x [xx.xx.xx.x] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/identity-cert type -1
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
lost connection
我尝试查看各种主机、配置、ssh 文件,但解决不了太多问题。
【问题讨论】:
-
服务器是否仅配置了密钥对身份验证?
-
我得问管理员,但我真的这么认为
-
在这种情况下,我认为问题可能是您没有服务器用户的私钥。
-
但是我可以连接到它并执行任何其他操作,这是升级后唯一停止工作的操作