cat ./bash_history 查看历史操作
sudo vi ~/.ssh/config
添加两行
ServerAliveInterval 120 TCPKeepAlive no然后保存
ServerAliveInterval 120 TCPKeepAlive no
Linux 操作
原文:http://www.cnblogs.com/tangbomao/p/6776280.html