# sudo vi /etc/ssh/ssh_config 添加两行 ServerAliveInterval 120 TCPKeepAlive no 保存退出 :wq 转载于:https://www.cnblogs.com/yyou/p/6928299.html