ssh tunnel - remote access through nat
Chuck Swiger
cswiger at mac.com
Tue Jul 25 17:23:00 UTC 2006
Drew wrote:
> 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.
Um. Why not forward an open port like 7777 from whatever is doing NAT for
this box to port 22 on it? If the NAT gateway is being assigned a dynamic IP,
use dyndns.org & and update script...
--
-Chuck
More information about the freebsd-questions
mailing list