Coding Spirit

一位程序员,比较帅的那种

0%

SSH: Keep Connection Alive

SSH connection will automatically drop due to timeout if there is no operation for a period. To keep connection alive, we can config ssh client to send a keepalive periodically. In ~/.ssh/config, there is a parameter for this:

1
ServerAliveInterval 60

If we set this value to 60, SSH client will send a keepalive every 60 seconds.