我可以从LAN上的每台其他计算机进行连接,也可以从外部进行连接。它可以很好地连接到其他运行SSHD的计算机。尝试ssh时,我得到以下读数:
$ ssh -vvv 192.168.1.9
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.9 [192.168.1.9] port 22.
debug1: Connection established.
debug1: identity file /home/Steven/.ssh/id_rsa type -1
debug1: identity file /home/Steven/.ssh/id_rsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/Steven/.ssh/id_dsa" as a RSA1 public key
debug1: identity file /home/Steven/.ssh/id_dsa type 2
debug1: identity file /home/Steven/.ssh/id_dsa-cert type -1
debug1: identity file /home/Steven/.ssh/id_ecdsa type -1
debug1: identity file /home/Steven/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
ssh_exchange_identification: read: Connection reset by peer
知道我可能搞砸了吗?我不记得在SSH配置文件中所做的更改,只是将一些用户添加到组中以尝试权限。即使我尝试不指定帐户(如上所述),在给出最终错误之前,它仍会挂在“本地版本字符串SSH-2.0-OpenSSH_6.2”上一分钟。我正在运行Ubuntu Server 12.04 x86,这是值得的。
tcpdump -i eth0 -n host 192.168.1.9 and tcp port 22
。您也可以尝试使用ssh-agent和ssh-add /home/Steven/.ssh/id_dsa
/dev/null
为身份文件?