xshell或securecrt会自动保持连接,putty设置如下:
In your session properties, go to Connection and under Sending of null packets to keep session active, set Seconds between keepalives (0 to turn off) to e.g. 300 (5 minutes).

Linux

vim ~/.ssh/config
Host *
    ServerAliveInterval 300
    ServerAliveCountMax 2

or /etc/ssh/ssh_config

参考:https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/

相关文章:

  • 2022-02-28
  • 2021-09-26
  • 2021-07-18
  • 2021-10-12
  • 2021-12-28
  • 2021-12-14
  • 2021-08-02
  • 2021-12-01
猜你喜欢
  • 2021-12-02
  • 2021-07-09
  • 2021-06-06
  • 2021-09-01
  • 2021-11-14
  • 2021-12-31
  • 2021-08-12
相关资源
相似解决方案