SSH access to machine behind router
Daniel Gimpelevich
daniel at gimpelevich.san-francisco.ca.us
Mon Feb 28 15:16:54 MST 2005
What you can do is forward multiple ports on the router to port 22 on
different machines. Then you can use the -p option to ssh to select which
machine to connect to. This is how my setup was when I was using a router
that supported it, which I'm sure most routers do. The disadvantage to
this method is that you have to delete the known_hosts file prior to every
connect attempt.
On Mon, 28 Feb 2005 14:38:53 -0600, Clinton MacDonald wrote:
> Friends:
>
> Can I SSH to a machine that is "behind" a router?
>
> At home I have several machines (YDL, Linux, and Mac OS X) that get
> their IP addresses from a wireless router. The "external" IP address (of
> the router itself?) is something like "66.xxx.xxx.123". Each computer on
> my mini-network then receives a "local" IP address from the router:
> 192.168.0.1, 192.168.0.2, etc. In setting up the router, I made sure to
> leave port 22 open (I think :-) ).
>
> If I know the IP address of the router, is there any way to use ssh to
> access one of the individual machines (say, 192.168.0.2)? Would it be
> anything like "ssh clint at 192.168.0.2@66.xxx.xxx.123"?
>
> Thanks!
>
> Best wishes,
> Clint
More information about the yellowdog-general
mailing list