Recalll beta
  • Add Topic
  • Search
  • Login
Loading...
  • Programming
  • SSH (Secure Shell)
  • Preventing ssh from timing out
Import from Url
  • Cat1
  • Cat2
  • Cat3
  • Cat4
  • Cat5
  • Cat2
  • Cat3
  • Cat4
  • Cat5
Rectangle 27 1

Preventing ssh from timing out

Due to latency or packet loss, ssh connections may timeout.

To prevent this, setup application-level keep-alives for ssh.

Add to the start of the ~/.ssh/config settings:

Host * ServerAlivesInterval 15

Now, the ssh client will send application-level keep-alives every 15 seconds.

If three of them fail consecutively, the client considers the connection failed and closes it in response. This count configurable using ServerAliveConutMax.

Opposed to the other option TCPKeepAlive, this is checked within the encrypted channel and is not spoofable.


Note ssh connection keep alive
Hidden

Discussion

View all 0 Comments
contact | privacy policy | terms of use © 2015-16 recalll Mobile Analytics

Modal header

Body...

Save