使用ssh连接服务器,在一段时间不操作后,会提示一下信息
Connection reset by ip port 端口号
打开/etc/ssh/sshd_config
sudo vim /etc/ssh/sshd_config
找到ClientAliveInterval
和ClientAliveCountMax
两个参数,如果没有的话就在最后加上
将值设为一个比较大的数字,如:
ClientAliveInterval 30
ClientAliveCountMax 86400