Drupal coder

Keeping SSH connection alive

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).

February 04, 2008OS X, SSH, Terminal, UNIX

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options