如何避免SSH Secure Shell Client连接Linux超时,自动断开

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何避免SSH Secure Shell Client连接Linux超时,自动断开相关的知识,希望对你有一定的参考价值。

参考技术A 必须重新登陆才行每都重复相同操作烦
般修改两烦问题解决
1、echo $TMOUT
显示空白,表示没设置, 等于使用默认值0, 般情况应该超. 于0, /etc/profile类文件设置0.
Definition: TMOUT: If set to a value greater than zero, the value is interpreted as the number of seconds to wait for input after issuing the primary prompt. Bash terminates after waiting for that number of seconds if input does not arrive
2、修改/etc/ssh/sshd_config文件
ClientAliveInterval 0ClientAliveCountMax 3注释符号掉,ClientAliveInterval应0改60,ClientAliveInterval指定服务器端向客户端请求消息 间间隔, 默认0, 发送.ClientAliveInterval 60表示每钟发送, 客户端响应, 保持连接.ClientAliveCountMax, 使用默认值3即.ClientAliveCountMax表示服务器发请求客户端没响应数达定值, 自断. 情况, 客户端响应.
记执行/etc/init.d/sshd restart 哦否则刚才修改效
想参考更请输入man sshd_config解更信息本回答被提问者和网友采纳

以上是关于如何避免SSH Secure Shell Client连接Linux超时,自动断开的主要内容,如果未能解决你的问题,请参考以下文章

ssh secure shell 如何使用

如何卸载ssh secure shell

怎么设置 SSH secure shell client 字符集

ssh secure shell client中文乱码

SSH Secure Shell Client 怎么卸载啊(win7),在控制程序里面找到SSH Secure Shell 卸不掉,

ssh(Secure Shell)