[Nottingham] AutoSSH - graceful disconnect?

Jason Irwin jasonirwin73 at gmail.com
Thu Aug 27 13:39:37 UTC 2015


Actually, I take that back. What appears to be happening is that the
autossh script in /etc/network/if-up.d/ is getting run twice on boot for
some reason. Which has me puzzled - isn't that the correct place for a
script to live so it gets run when the network is up? (Routable IP etc etc).

This is on Xubuntu 14.04 LTS (so little-to-no systemd is in play).

On 27 August 2015 at 14:12, Jason Irwin <jasonirwin73 at gmail.com> wrote:

> So I've got AutoSSH firing when the network comes up.
> This creates a reverse tunnel and allows me to remotely administer the
> machines in question...yay me.
>
> But here's the problem...
>
> Every time the machine starts, it will create a new tunnel leading to
> "zombie" ssh processes on the server. Is there any way to tell AutoSSH to
> gracefully disconnect (server and client) when the client goes through a
> reboot or whatever.
>
> Cheers,
>
> J.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20150827/74a03d4a/attachment.html>


More information about the Nottingham mailing list