If you manage any Linux servers over the internet through ssh, you may have experienced your client disconnecting after times of inactivity. I know I do and it annoys me to death. There is a parameter you can add to the ssh connection in order to keep it up over these type of connections. Just do the following:
ssh -o ServerAliveInterval=15 login@servername
The parameter -o ServerAliveInterval=15 adds the functionality of sending a heartbeat type message to the server every 15 seconds if data has not been sent in the last 15 seconds. This parameter is customizable.
No comments:
Post a Comment