nixers
SSH Tunnel Password Based Auto Reconnect - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics)
+--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix)
+--- Thread: SSH Tunnel Password Based Auto Reconnect (/Thread-SSH-Tunnel-Password-Based-Auto-Reconnect)


SSH Tunnel Password Based Auto Reconnect - venam - 25-01-2016

Hello fellow Nixers,
Yesterday, I searched for something that could auto-reconnect my ssh tunnels when using password based encryption.

I did not find anything useful. Everyone use key-based auth.
In my specific case I can't setup my key on the hosts.

When everything fails you write your own solution and that's what I did: https://github.com/venam/SSH-Tunnel-Password-Based-Auto-Reconnect

If you have a better one it would be nice to know.


RE: SSH Tunnel Password Based Auto Reconnect - xero - 25-01-2016

you could write an expect(1) script that looks for disconnects. or if you have admin access to the remotes you could use mosh.


RE: SSH Tunnel Password Based Auto Reconnect - z3bra - 25-01-2016

Plot twist: mosh doesn't need root access. You can just build a static binary, and copy it in your $PATH, or specify the path to the binary on the remote server when starting the client.

But mosh relies on ncurses...


RE: SSH Tunnel Password Based Auto Reconnect - xero - 25-01-2016

(25-01-2016, 03:42 PM)z3bra Wrote: You can just build a static binary, and copy it in your $PATH, or specify the path to the binary on the remote server when starting the client.

touche. good to know.