Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Idle Timeout 1

Status
Not open for further replies.

jestrada101

Technical User
Mar 28, 2003
332
How do I configure a linux box to timeout an ssh connection?

thanks
je
 
Edit your profile file "vi /etc/profile" and add the following line somewhere after the line that reads
"HISTFILESIZE="
TMOUT=3600
The value you enter for the variable "TMOUT=" is in second and in our case represents 1 hour (60 * 60 = 3600 seconds). If you put this line in your "/etc/profile", then the automatic logout after one hour of inactivity will apply for all users on the system. You can set this variable in user's individual ".bash_profile" file to automatically force a logout after a certain time.

Also check your ssh_config .. sshd_config to see if you have keepalive enabled ?

Good Luck,
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top