ubuntu SSH 远程登录终端无响应
12个月前 (05-31) / 159 次围观 / 0 次吐槽ubuntu ssh远程连接终端久了就没反应
修改 sshd_config 文件
sudo vim /etc/ssh/sshd_config
找到:
ClientAliveInterval = 3
ClientAliveCountMax = 0
去掉注释#,修改如下:
ClientAliveInterval 0 # 0 为每隔秒发送一次请求给client,如果client响应,就保持连接。
ClientAliveCountMax 3 # 3 在ssh server发出请求后,客户端没有响应的次数达到3次,就断开连接。
修改完后重启SSH
systemctl restart ssh
相關 操作系統
本筆記站部分文章、圖片收集於 互聯網,作者:刚 ,僅作自學筆記;請勿轉載用於 非法途逕 , 轉載注明 _ 我欣飞祥 。
Url : 【 http://uuucd.cn/software/1855.html 】
Url : 【 http://uuucd.cn/software/1855.html 】
ipcooc2@gmail.com
额~ 本文暂时没人评论 来添加一个吧 …
发表评论