怎样将SSH设置为一直连接(不断线)
发表于 : 2016-04-06 21:21
ubuntu的SSHD默认是如果客户端长时间不操作SSH就会自动断线,很麻烦。
Sshd_config加TCPKeepAlive yes,ClientAliveInterval 120,ClientAliveCountMax 5000也是一样,无操作过大约10分钟后自动断线。vickycq 写了:检查服务器 sshd_config 的 ClientAliveInterval, TCPKeepAlive 参数
检查客户端 ssh_config 的 ServerAliveInterval, TCPKeepAlive 参数
检查所用 shell 的自动登出设置,如 bash 的 TMOUT,csh 的 autologout
参考
http://serverfault.com/questions/278396 ... -on-ubuntu
https://docs.oseems.com/general/applica ... le-timeout
http://www.cyberciti.biz/faq/appleosx-b ... ash-shell/