Skip to content

Latest commit

聽

History

History
33 lines (23 loc) 路 710 Bytes

File metadata and controls

33 lines (23 loc) 路 710 Bytes

Disabling SSH Timeout When Connecting to/from Ubuntu

reference 1 reference 2

SOL 1:

nano /etc/ssh/sshd_config

# other configs above

ClientAliveInterval 600
TCPKeepAlive yes
ClientAliveCountMax 10

Restart the ssh server so that changes take effect:

$ sudo /etc/init.d/ssh restart

SOL 2: 馃憣馃憤馃憤馃憤馃憤

  • linux : nano ~/.ssh/config
  • window :edit C:\Users**USER**.ssh\config
Host *
    ServerAliveInterval 20
    TCPKeepAlive no