我只是安装了一个新的Ubuntu服务器10.04,我观察到,如果我不使用我的连接一段时间,它只会断开我。
这在CentOS上甚至在旧的Ubuntu上都不会发生。
/ var / log / auth不包含关于断开连接的任何提示。
在/ etc / ssh / sshd里面有和TCPKeepAlive yes 。 发生什么事?
根据您的意见 ,只需将以下内容添加到/ etc / ssh / sshd_config
UseDNS no
请编辑你的sshdconfiguration:
nano / etc / ssh / sshd_config
search“ClientAliveInterval”
将其更改为0
重新加载sshd
/etc/init.d/ssh重启