在全新安装的 Ubuntu 14.04 (machine1) 上,我的 openssh-server 具有完全默认的配置。
当从 LAN 上的 machine2 使用空的 ~/.ssh 连接时,我从服务器获得以下调试输出(作为 /usr/sbin/sshd -p 22 -D -d -e 运行):http://pastebin .com/WeHGzsUM和相关位可能是:
debug1: permanently_set_uid: 118/65534 [preauth]
debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
Read from socket failed: Connection reset by peer [preauth]
debug1: do_cleanup [preauth]
...
Run Code Online (Sandbox Code Playgroud)
当从 machine2 使用在许多服务器上工作的普通 ~/.ssh 连接时,我在 machine1 上得到以下调试输出: http: //pastebin.com/uxKfAYSL
在这两种情况下,在 machine2 上,客户端报告:http://pastebin.com/dTp4mNne,在我看来,直到最后一行都是正常的:
ssh_exchange_identification: read: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)
在服务器和客户端上,ssh客户端是版本:
OpenSSH_6.6p1 Ubuntu-2ubuntu1, OpenSSL 1.0.1 14 Mar 2012
Run Code Online (Sandbox Code Playgroud)
服务器有版本:
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, …Run Code Online (Sandbox Code Playgroud)