![未知的 ssh 登录错误,因未知原因挂起](https://linux22.com/image/1499602/%E6%9C%AA%E7%9F%A5%E7%9A%84%20ssh%20%E7%99%BB%E5%BD%95%E9%94%99%E8%AF%AF%EF%BC%8C%E5%9B%A0%E6%9C%AA%E7%9F%A5%E5%8E%9F%E5%9B%A0%E6%8C%82%E8%B5%B7.png)
我正在尝试使用登录 VM 实例,但由于某种原因,它挂在:
$ mforde@igsb:~$ ssh -vvv -l ubuntu -i ~/.ssh/mf-half.pem 172.16.215.255
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 172.16.215.255 [172.16.215.255] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/mforde/.ssh/mf-half.pem" as a RSA1 public key
debug1: identity file /home/mforde/.ssh/mf-half.pem type -1
debug1: identity file /home/mforde/.ssh/mf-half.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6
直到本周末,密钥都运行良好,并且在其他虚拟机上运行良好。此外,虚拟机成功响应了 ping。
有什么建议么?
答案1
您的虚拟机 IP 地址似乎有点奇怪,因为它以 255 结尾,就像广播地址一样。您使用的是 /16 网络掩码吗?您可以 ping 通它吗?顺便问一下,您在该虚拟机上有任何本地控制台吗?
您可以尝试从本地计算机上的受信任密钥列表中删除此 VM RSA 密钥吗?也许它已被更改,这就是您无法再次登录的原因。