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
浙公网安备 33010602011771号