Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 12:03:59 -0500
From:      Drew <cotharyus@gmail.com>
To:        questions@freebsd.org
Subject:   ssh tunnel - remote access through nat
Message-ID:  <715841970607251003o1d358d3dl894291f50a0b8053@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,
I've got a box that's nat'd out to the internet. It is occassionally
neccessary for me to access this box remotely. The obvious answer is:

ssh -R 7777:localhost:22 remote.box cat

run from the nat'd box where remote box is a place I pretty much always have
access too from anywhere, anytime. The problem is that the connection
between these two boxes is famously unreliable - so I need to ensure that
this connection stays available. Unfortunately, the procedure for this is
not obvious to me. I've thought about a cron job, as the connection would
simply fail if it couldn't bind to 7777 on the remote box to listen. But I'm
thinking there has to be something that makes more sense. Suggestions?
Feedback? Thanks in advance for any pointers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?715841970607251003o1d358d3dl894291f50a0b8053>