Re: SSH Timeout

 
HP_amd
New Member

SSH Timeout

Hi ,

-------------------------------
Read from remote host zxhx101 : Connection reset by peer
Connection to zxhx101 closed.
-------------------------------

After some times(hours) , my connections gets time out with above message . I want to increase the SSH timeout .
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: SSH Timeout

> [...] I want to increase the SSH timeout .

What makes you think that it's related to
SSH? Does an idle Telnet connection stay up
longer? Is there a TMOUT (or similar) time
limit in the shell on the remote system?

What is the remote system?
Gokul Chandola
Trusted Contributor

Re: SSH Timeout

Hi,

There may be network timeout limit.

From server site ssh configuration is set in following file.
/opt/ssh/etc/sshd_config

Regards,
There is always some scope for improvment.
Saurav Garg
New Member

Re: SSH Timeout

Hi,


Can you send output of /etc/opt/ssh/sshd_config file.


wheather this issue is only with ssh or in telnet also.


if issue has come both telnet and ssh, then look over /etc/profile file for TMOUT veriable value.and also look over user's .profile for TMOUT variable value




Regards
Saurav

Steven Schweda
Honored Contributor

Re: SSH Timeout

> [...] look over /etc/profile file for
> TMOUT veriable value.and also look over
> user's .profile for TMOUT variable value

First:
echo $TMOUT

Then, if it's set, start looking for who set
it. If it's not set, then I wouldn't bother
looking for where it gets set.
HP_amd
New Member

Re: SSH Timeout

hi ,
TMOUT is set to zero . Infact , its set to zero on all servers but i am facing this problem with 2 new servers only .

Telnet i need to check .

$ echo $TMOUT
0


sshd_config file as below (only non-hash entries)

----------------------------------
Protocol 2,1
KerberosAuthentication yes
UsePAM yes

X11Forwarding yes
TCPKeepAlive yes
ClientAliveInterval 0
ClientAliveCountMax 3
MaxStartups 30

HPNDisabled yes
Subsystem sftp /opt/ssh/libexec/sftp-server
----------------------------------
HP_amd
New Member

Re: SSH Timeout

telnet has no issue , it connects for long time