遇到问题:ssh连接远程服务器,很快就断开

解决方法:在/etc/profile 追加 TMOUT=300 (意思是最长超时300s)

命令: echo >> TMOUT /etc/profile

            source  /etc/profile  (重新读取profile文件,使其生效)