If you get kicked out of your SSH connection once in a while, your SSH server might have set a maximum amount of time you can be idle.
To overcome this, you can use a little setting in your SSH client configuration file. You should find this file in your home directory as ~/.ssh/config. If it's not there, you should create it. Yout have to add the following line.
ServerAliveInterval 60
You have to set the number of seconds after which the connection should be issued with a dummy statement. So in this example that time is 1 minute (60 seconds).
Comments
Post new comment