The root cause of the need of ssh keepalives
Many people complain that their ssh connections are reset after some idle time and the solution is to use ServerAliveInterval on client and ClientAliveInterval on server.
But what is the cause of an idle connection being cut, when keepalives not enabled? Who cuts them? The OS or sshd? Where is it configured? |
On the remote host, look for
Code:
export TMOUT=xx[x] Locally, I use Code:
.ssh/config Hope that helps. Another trick is to run something indefinately, like Code:
watch -n 10 w |
All times are GMT -5. The time now is 07:34 PM. |