how to check whether the ssh tunnel is up

Alex Bligh alex at alex.org.uk
Sat Apr 27 18:37:14 EST 2013


On 26 Apr 2013, at 10:06, Vincent Lin wrote:

> Is there a way to show whether the ssh
> tunnel is up?

In addition to the suggestions you have already been
sent, can I suggest you look at autossh? It uses
a combination of -L and -R to send packets to the
other end and back, to check the tunnel is working
as well as up, and reopens the tunnel if it's
not up.

-- 
Alex Bligh






More information about the openssh-unix-dev mailing list