Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-5906: Unable to set ssh terminal idle timeout

Authentication Service ,  

31 October,15 at 12:28 AM


SSH terminal connections do not appear to time out even though ClientAliveInterval and ClientAliveCountMax  parameters are set in the sshd_config  file. 


There is a known bug in OpenSSH  where if anything except "0" is used in the "ClientAliveCountMax" parameter the session will NOT time out.

Here is an external ( non Centrify) link with additional information:

ubuntu bug #296920 


Timeout should be set using the "ClientAliveInterval" parameter in seconds.
"ClientAliveCountMax" should be set to "0" If anything except "0" is used in the "ClientAliveCountMax" parameter the session will NOT time out. 

ClientAliveInterval 60   ( the number of seconds you want the session to stay alive with no interaction)
ClientAliveCountMax 0 ( set this to 0. Anything other than 0 and the session will not time out)


Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.