Main Menu

Search

LINUX: How to Disable SSH Login session timeout on the Linux Hosts

Follow below steps:
  
1. Take backup of /etc/profile file.

2. Set the TMOUT to 0 to disable ssh session timeout. For this update /etc/profile file on all the OCNE nodes and add below 3 lines at the end of the file. If you already have existing entries for TMOUT just update those entries.

TMOUT=0
readonly TMOUT
export TMOUT

3. Restart sshd service

service sshd restart

No comments:

Post a Comment