LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   RHEL: /etc/ssh/sshd_config "ClientAliveInterval" versus etc/profile "TIMEOUT" and "TMOUT" (https://www.linuxquestions.org/questions/linux-security-4/rhel-etc-ssh-sshd_config-clientaliveinterval-versus-etc-profile-timeout-and-tmout-4175665317/)

linuxuser0024 12-02-2019 09:34 PM

RHEL: /etc/ssh/sshd_config "ClientAliveInterval" versus etc/profile "TIMEOUT" and "TMOUT"
 
Hi!

I would like to understand what is the difference of idle session timeout configured in /etc/ssh/sshd_config using parameter ClientAliveInterval versus the etc/profile TIMEOUT and TMOUT

what happens if i only configure the clientaliveinterval and not the other one, vice versa?

which is more secure, via sshd/config or via etc/profile?

thanks!

scasey 12-04-2019 01:54 PM

Quote:

Originally Posted by linuxuser0024 (Post 6064121)
Hi!

I would like to understand what is the difference of idle session timeout configured in /etc/ssh/sshd_config using parameter ClientAliveInterval versus the etc/profile TIMEOUT and TMOUT

what happens if i only configure the clientaliveinterval and not the other one, vice versa?

which is more secure, via sshd/config or via etc/profile?

thanks!

See the relevant sections in man sshd_config for details of those options.

Personally, I don't want an ssh session to automatically end for any reason if I can help it.

I've not seen TIMEOUT or TMOUT used for session control, so can't help you there.


All times are GMT -5. The time now is 09:24 AM.