您好,欢迎访问一九零五行业门户网

PuTTY连接Linux服务器经常断线解决方案

putty在远程连接服务器之后,经常会断线提示“software caused connection abort”,而且经常在很短的时间内就失去连接。 解决方案如下: 第一步 :设置服务器 1、修改服务器中/etc/ssh/sshd.config 文件,将logingracetime的设为0,tcpkeepalive 设为yes 2
putty在远程连接服务器之后,经常会断线提示“software caused connection abort”,而且经常在很短的时间内就失去连接。
解决方案如下:
第一步:设置服务器
1、修改服务器中/etc/ssh/sshd.config 文件,将logingracetime的值设为0,tcpkeepalive 设为yes
2、service sshd restart 重启sshd服务。
第二步:设置putty左侧connection 项目中设定 sending of null packets to keep session active,设置为每隔几秒发送一个数据包,保持session不会过期。如下图我设置的10秒
虚拟机桥接,所以遇到了这个问题
具体方法使用arping命令:arping -c 3 -f -d *.*.*.* (替换成你要使用的ip地址)
具体可以查看我另一篇博客:http://blog.csdn.net/wyqwclsn/article/details/41013647
其它类似信息

推荐信息