配置服务器端:
vi /etc/ssh/sshd.conf

ClientAliveInterval 120 #以秒为单位(可以改大些)
ClientAliveCountMax 0 #发现客户端没有相应,则判断一次超时,这个参数设置允许超时的次数
#重新加载sshd服务。退出客户端,再次登陆即可验证。

 

相关文章:

  • 2021-07-26
  • 2021-12-09
  • 2022-12-23
  • 2021-12-30
  • 2021-11-12
  • 2021-11-24
猜你喜欢
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-10-14
相关资源
相似解决方案