gma*_*ter 3 unix macos terminal scp
我正在通过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 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
Run Code Online (Sandbox Code Playgroud)
我尝试查看各种主机,配置,ssh文件,但我没有办法解决太多问题.
我从个人Mac到我们用作本地服务器的Mac桌面上遇到了同样的问题.跑步sudo sshd -t
给我看了以下提示:
/var/empty must be owned by root and not group or world-writable
Run Code Online (Sandbox Code Playgroud)
我所做的只是将所有者更改回root(我不知道为什么它还没有,但我记得从Mavericks升级到Yosemite给了我一些关于权限的麻烦):
cd /var
sudo chown root empty
Run Code Online (Sandbox Code Playgroud)
我希望它有所帮助.
归档时间: |
|
查看次数: |
22321 次 |
最近记录: |