HOWTO: Set the SSHD Idle Timeout

Posted on the June 24th, 2009 under HOWTOs, Sys Admin, Technology / Computing by jglemza

Here’s something that I usually forget to change from the default and then get annoyed when my terminal hangs.

  1. As root open your sshd_config file in an editor.
    su -
    vim /etc/ssh/sshd_config
  2. Add the following lines.
    ClientAliveInterval 600
    ClientAliveCountMax 3
  3. Restart the sshd process.
    service sshd restart

That’s it. That will keep you logged in for 30 minutes at a time without activity. (600 seconds x 3)

Bookmark and Share

One Response to 'HOWTO: Set the SSHD Idle Timeout'

  1. January 6, 2010 at 3:23 pm
    Jordan Lev

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>