2020年5月10日 2020年7月28日
xshell服务器发送了断开连接数据包Connection closed by foreign host
修改/etc/ssh/sshd_config文件
1 2 3 4 5 6 7 8 9 10 |
#每一分钟,sshd都和ssh client打个招呼,检测它是否存在,不存时即断开连接 ClientAliveInterval 60 #指如果发现客户端没有相应,则判断一次超时,这个参数设置允许超时的次 ClientAliveCountMax 9999 #重新载入ssh参数 service sshd reload #重新启动ssh服务 service sshd stop #service sshd restart service sshd start |