There's a server I'd like to be connected to at all times that I have an internet connection. Sometimes I turn off my laptop, sometimes my connection drops, sometimes I go from wired to wireless or vice versa. Is there any solution to get it to automatically reconnect whenever possible and resume my screen session?
feedback
|
|
I suspect that autossh, possibly with a little bit of scripting to automatically reconnect to the screen session, will be the way to go. | |||||||||
feedback
|
|
I've never used it myself, but if I remember my hearsay correctly, Putty Tray will do that http://putty-tray.en.softonic.com/ Please comment if I'm wrong and leading John down the wrong path. | |||||
feedback
|
|
You could consider running ssh in a wrapper script.
Call the script "ssh-forever" and use it with, for example:
| |||||
feedback
|
|
screen command is what you need, you can attach or detach to the terminal from different locations: | |||||
feedback
|