修改sshd_config解决 xshell 连接 linux 错误 connection closed by foreign host

用xshell链接服务器老是报错 connection closed by foreign host,害的我一个程序每次都跑到一半shell 解决方案是:    vim sudo vim /etc/ssh/sshd_config 添加两行: ClientAliveInterval 60 ClientAliveCountMax 3 sudo /etc/init.d/ssh restart
相关文章
相关标签/搜索