To remove timeout parameter for ssh connection
clientAliveInterval 600 : It means if the session is idle for 600 seconds session will automatically timeout.
Step 1 : Comment following parameter in /etc/profile file
# TMOUT=600
Step 2 : Un-comment in /etc/ssh/sshd_config file and set the "clientAliveInterval" parameter:
clientAliveInterval 600
# TcpKeepAlive =yes
# ClientAlivecountMax 0
Step 3 : stop the ssh services and again start the ssh services.To reflect the ssh changes
# stopsrc -s sshd
# startsrc -s sshd
NOTE: if you are not commenting TMOUT parameter, then the session will timeout if it is idle for 600 seconds even
if you have commented the mentioned the parameters in sshd_config file.
clientAliveInterval 600 : It means if the session is idle for 600 seconds session will automatically timeout.
Step 1 : Comment following parameter in /etc/profile file
# TMOUT=600
Step 2 : Un-comment in /etc/ssh/sshd_config file and set the "clientAliveInterval" parameter:
clientAliveInterval 600
# TcpKeepAlive =yes
# ClientAlivecountMax 0
Step 3 : stop the ssh services and again start the ssh services.To reflect the ssh changes
# stopsrc -s sshd
# startsrc -s sshd
NOTE: if you are not commenting TMOUT parameter, then the session will timeout if it is idle for 600 seconds even
if you have commented the mentioned the parameters in sshd_config file.
Thanks for reading this Post