错误现象:在非常短的时间内就失去连接。并报"Software caused connection abort”
解决的方法:首先得排除是网络不是不通畅。假设在局域网中要确定IP没有冲突,验证方法非常easy。ping www.baidu.com 就可以; 然后改动server中/etc/ssh/sshd.config 文件,将LoginGraceTime的值设为0,默觉得2m。TCPKeepAlive 设为yes, 然后使用service sshd restart来重新启动sshd服务,这样设置后。Putty没有再掉线了。
posted on 2017-05-22 21:52  lxjshuju  阅读(481)  评论(0编辑  收藏  举报