SSH disconnects active session after 20 minutes
Posted
by
Paramaeleon
on Server Fault
See other posts from Server Fault
or by Paramaeleon
Published on 2013-10-18T07:53:18Z
Indexed on
2013/10/28
15:58 UTC
Read the original article
Hit count: 206
ssh
I’ve just set up a new Linux box (OpenSuSE 12.3 on VmWare). Now I stated that my SSH shell sessions are disconnected exactly after 20 minutes, clearly with activity. (Putty: “Network error: Software caused connection abort”)
I already set Putty to send keep alives every 64 sec.
In sshd_config
, I set
ClientAliveInterval 50
ClientAliveCountMax 2
and did a deamon reload. Didn’t help. About two minutes after the link breakdown, ssh reports to /var/log/messages:
… … sshd[…]: Timeout, client not responding.
… … sshd[…]: pam_unix(sshd:session): session closed for user root
I don’t encounter this behaviour when connecting to other virtual machines, so I guess the problem isn’t in the network. Any help is appreciated.
© Server Fault or respective owner