Ubuntu Dedicated Server SSH TimeOut Problem
PROBLEM: Dialing into my dedicated Ubuntu server the connection drops if I am not active for a relatively short time of about 2 minutes.
SOLUTION: IMPLEMENTED: Added the ServerAliveCountMax ServerAliveInterval entries to the client side ssh config file.
Solution
- Client_loop: send disconnect: Broken pipe – Critical find
- ssh -o TCPKeepAlive=yes -o ServerAliveCountMax=20 -o ServerAliveInterval=15 root@IP_address
- This appears to imply the server has not been restarted when the restart and / or reload commands were issued.
- Restart server and see if these statments are still required. > Updated and rebooted. Still did not hold the connection longer than ~2 minutes.
- Checked server and client side config file and I do not see ServerAliveCountMax ServerAliveInterval in either file
- Which side do the settings: ServerAliveCountMax ServerAliveInterval entries belong in? Is it safe to assume in the SSH_Config files?
- Linux and VMWare: SSH avoid disconnection inactivity ( original in Spanish – link includes translation ) – see snippet below: my guess appears to have been correct – add the entries to client side says this reference
From the SSH client side:
If the client is Linux: Edit the configuration file: ssh_config
- At user level: ~/.ssh/config
- or for all users: /etc/ssh/ssh_config
…….more
