Remotely SSH to IP address in home network

airportNetworksshterminalunix

I've got a device at home I want to SSH to from work. The device has port 22 open locally and I have port 22 opened on my AirPort Extreme. However, on the AirPort Extreme it says the open 22 port only goes to my main server IP (10.0.1.100).

The IP I need to access is 10.0.1.104. Again, the device at 10.0.1.104 has port 22 open on it, as I am able to SSH to it on the local network. I can also SSH to 10.0.1.100 with no issues.

When I try to add an additional port forwarding entry, AirPort Utility says there is already a port forward listed for 22 since it's already open, but is pointing to 10.0.1.104.

I feel like there is a way to specify the IP in the SSH syntax, but I'm not sure what it is.

Thanks.

Best Answer

One way to do what you want here is to add a port mapping in your Airport Extreme that points a non-standard remote port (e.g. 8022) to port 22 on your local 10.0.1.104 machine. Then, you can specify a different port in your SSH client (e.g. '-p 8022') to gain remote access.

You could also SSH into 10.0.1.100 first, and then SSH into 10.0.1.104 from that machine.