[LUGSB] SSH through routers?
Vinay Pai
vinay at cs.sunysb.edu
Wed Jul 20 13:17:44 EDT 2005
There's no way to initiate a connection to a host behind a NAT without
port forwarding.
A workaround, if you have SSH access to a machine outside your network,
is to keep a connection to that machine open and use SSH tunneling. For
instance, if you can ssh to foo, you'd first open a tunnel with
ssh -R 2222:localhost:22 foo
now, you can ssh to your machine from anywhere (provided incoming
connections on port 2222 aren't firewalled by foo) using
ssh -p2222 foo
Vinay
On Wed, 2005-07-20 at 16:59 +0000, cbwright wrote:
> Hello--
>
> I'm currently running a Linux box behind a router to which I don't have
> administrative access--and the only person who might doesn't have
> technical expertise. (Nor do I, but, well...aphid versus amoeba, sort of
> thing.) Is there a way (without IP or port forwarding; I can't enable
> those) to SSH into my computer around the router, for instance by
> specifying my network-internal IP in addition to the router's external
> IP? Or would this be heavily implementation-specific? --I haven't found
> anything in the SSH man pages or on Google for the issue.
>
> Thank you,
> Christopher Wright
> _______________________________________________
> lugsb mailing list
> lugsb at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/lugsb
More information about the lugsb
mailing list