建立 SSH 连接后挂起

建立 SSH 连接后挂起

序言

昨晚,我正在使用 Ubuntu VM(在 Azure 上运行)时突然断开连接。我自己没有安排任何重启,所以我不确定是什么原因造成的。我当时登录并积极工作,没有执行任何 apt-get upgrade 或类似操作。

问题

断开连接后,我可以连接,只是无法完成登录。

有什么线索可以说明是什么原因导致此问题以及如何解决?

ssh 输出

$ ssh -v [email protected]
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to myapp.cloudapp.net [137.116.246.159] port 22.
debug1: Connection established.
debug1: identity file /Users/oligofren/.ssh/id_rsa type 1
debug1: identity file /Users/oligofren/.ssh/id_rsa-cert type -1
debug1: identity file /Users/oligofren/.ssh/id_dsa type -1
debug1: identity file /Users/oligofren/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2

此时什么也没有发生。它只是挂在那里什么也不做 - 没有退出,也没有做任何其他事情。

答案1

Azure 实例似乎已崩溃/冻结。

至少这是我周一早上回来上班并尝试重新启动后得出的诊断。它说它至少关闭虚拟机一个小时后才完成。

重新启动 Azure 实例后,一切恢复正常。

相关内容