我正在通过Mac终端在远程服务器上工作,因为我从10.5更新到OSX 10.10我每次尝试scp
从服务器到计算机时都开始收到此消息:
ssh_exchange_identification: Connection closed by remote host
lost connection
Run Code Online (Sandbox Code Playgroud)
如果我scp
向后执行(从mac复制到服务器)它工作正常,如果我从另一个mac做它,它工作正常.
如果我做了一个verobse 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 …
Run Code Online (Sandbox Code Playgroud)