network error:software caused connection abort

使用Putty链接阿里云香港服务器报这个错误。

vim /etc/ssh/sshd_config

找到如下配置

#ClientAliveInterval 540

#ClientAliveCountMax 10

修改为

ClientAliveInterval 5400 //90分钟

ClientAliveCountMax 100  //100次

如果没有添加这两个配置

猜你喜欢

转载自www.cnblogs.com/peteremperor/p/10488583.html