5

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels.

The Gnome Terminal window is still open upon restart, but it is frozen, and the programs that rely on these tunnels also hang.

I have to close and reopen the ssh connection and then shut down and restart the dependent programs.

Anyone got any nice methods of working around this?

3

You can use something like autossh to achieve automatic re-initiation of ssh connections, though I'd love it if someone knew a solution that is built into ssh itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.