Ubuntu ssh 长连接

Ubuntuo 22.10 在使用ssh 连接远程主机的时候,长时间不操作的话,会提示The semaphore timeout period has expired。

 

解决办法:

在SecureCRT中修改

 

在server

server在/etc/ssh/ssh_config文件里加两个参数
ClientAliveInterval 60
ClientAliveCountMax 3

 重启ssh

sudo service ssh restart
或者
sudo /etc/init.d/ssh restart

posted @ 2023-03-14 08:07  Ratooner  阅读(85)  评论(0编辑  收藏  举报