Home  >  Article  >  Database  >  PuTTY连接Linux服务器经常断线解决方案

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

WBOY
WBOYOriginal
2016-06-07 16:10:111840browse

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秒

n块λk?糙铻椁冓喎?http://www.2cto.com/os/xuniji/虚拟机桥接,所以遇到了这个问题

具体方法使用arping命令:arping -c 3 -f -D *.*.*.* (替换成你要使用的IP地址)

具体可以查看我另一篇博客:http://blog.csdn.net/wyqwclsn/article/details/41013647

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn