LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-02-2019, 09:34 PM   #1
linuxuser0024
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
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!
 
Old 12-04-2019, 01:54 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by linuxuser0024 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh trying to configure sshd_config problem with ListenAddress and ssh restart pulper Linux - Networking 1 10-13-2014 08:20 AM
sshd ClientAliveInterval per user eeluve Linux - Security 6 10-23-2013 09:15 PM
[SOLVED] Cannot able to do ssh after doing changes in /etc/ssh/sshd_config suboss87 Linux - Security 2 09-05-2012 11:15 PM
Starting sshd: /etc/ssh/sshd_config line 60: garbage at end of line; "no". any clue? loba09 Linux - Server 1 02-17-2011 07:04 PM
/etc/ssh/sshd_config: Permission Denied cK` Linux - Newbie 3 04-05-2010 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration