Operating System - HP-UX
1834178 Members
2376 Online
110064 Solutions
New Discussion

time out setting for ssh server

 
yc_2
Regular Advisor

time out setting for ssh server

Hi,

How to set time out in ssh server in HP-UX 11.11?


Thanks in advance.
2 REPLIES 2
Michael Steele_2
Honored Contributor

Re: time out setting for ssh server

HI

I'm not sure what you mean by ssh server. 'ssh' is secure shell login.

Try adding TMOUT=3600 to your user's .profile file. This will end any logged in user's session in one hour. 1800 in one half hour, etc.
Support Fatherhood - Stop Family Law
rariasn
Honored Contributor

Re: time out setting for ssh server

Hi:

Use ssh option "ConnectTimeout" o configure this option for sshd daemon.

$ man ssh_configd


ConnectTimeout Specifies the timeout (in seconds) used when connecting to the SSH server, instead of using the default system TCP timeout.

This value is used only when the target is down or really unreachable, not when it refuses the connection.

regards,

rariasn