Possible to keep ssh session alive even when client computer is off?
I have a Linux laptop that I use to connect to a Linux server with SSH. The connection started to freeze after some inactivity, so after digging around I added the following in /etc/ssh/ssh_config (not sshd_config) on the Linux laptop:
Code:
ServerAliveInterval 60 Code:
Timeout, server not responding. Code:
ServerAliveInterval 120 Alternatively, could I set the following on /etc/ssh/sshd_config on the server? Would that work? Code:
KeepAlive yes |
Have you used the utility "screen"? It creates persistent shell sessions that can be disconnected by CTRL+A,D and reconnected by running "screen -r". If the parent ssh session is dropped, screen automatically disconnects the session and keeps it running in the background. Of course it also allows you to reconnect a shell session started from a different ssh client.
Sam. |
All times are GMT -5. The time now is 02:44 AM. |