<div dir="ltr"><div>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).<br><br></div>This is on Xubuntu 14.04 LTS (so little-to-no systemd is in play).<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 August 2015 at 14:12, Jason Irwin <span dir="ltr"><<a href="mailto:jasonirwin73@gmail.com" target="_blank">jasonirwin73@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>So I've got AutoSSH firing when the network comes up.<br></div>This creates a reverse tunnel and allows me to remotely administer the machines in question...yay me.<br><br></div>But here's the problem...<br><br></div>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.<br><br></div>Cheers,<br><br></div>J.<br></div>
</blockquote></div><br></div>