使用 ssh -v 选项来连接 freeshell,如果出现如下所示的 Connection established,但没有出现 debug1: Remote protocol version 2.0, remote software version xxx 一行,就是本文所述的问题。


$ ssh -v servmon.6.freeshell.ustc.edu.cn
OpenSSH_6.6.1, OpenSSL 1.0.1h 5 Jun 2014
debug1: Reading configuration data /home/boj/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to servmon.6.freeshell.ustc.edu.cn [2001:da8:d800:71::987] port 22.
debug1: Connection established.
debug1: identity file /home/boj/.ssh/id_rsa type 1
debug1: identity file /home/boj/.ssh/id_rsa-cert type -1
debug1: identity file /home/boj/.ssh/id_dsa type -1
debug1: identity file /home/boj/.ssh/id_dsa-cert type -1
debug1: identity file /home/boj/.ssh/id_ecdsa type -1
debug1: identity file /home/boj/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/boj/.ssh/id_ed25519 type -1
debug1: identity file /home/boj/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1

先说解决方法:在 freeshell.ustc.edu.cn 控制面板里用 “Reboot” 功能重启。如果重启后仍然出现上述情况,请联系技术支持(support AT freeshell.ustc.edu.cn)。

原因可能是:

  • 内存不足,虚拟机内存达到限制或物理节点内存不足。
  • 进程数量达到限制(500 个)。
  • 磁盘已满,无法写入日志。请注意磁盘空间有 24 小时的宽限期,在宽限期内可以使用超过限制 2 G 的磁盘,如果宽限期内使用了超限的磁盘空间,宽限期过后磁盘就不能分配新空间了。遇到这种情况,重启是不管用的。