我正在通过Mac终端连接远程服务器,自从我将操作系统更新为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文件,但没有解决太多问题。