On 5/11/06, Max Eper <diebywire at gmail.com> wrote:
> I'd like to be able to do the same to connect to my home machine while
> traveling, but it's behind two (NAT) cable modem routers, with 22
> going to a machine behind the first router, and my personal computer
> behind another router which is downstream of the first router.

Ok, let's throw some IP addresses on these to get an example going.

WAN - 1.1.1.1
NAT1 - 192.168.1.0/24
NAT2 - 10.1.1.0/24
NAT2 interface IP on NAT1- 192.168.1.254
Home_1 - 10.1.1.1

Start by picking a new port number other than 22 (2222 is my preference, YMMV)
on the NAT1 router, map 1.1.1.1:2222 to 192.168.1.254:2222
On the NAT2 router, map 192.168.1.254:2222 to 10.1.1.1:22

When you SSH to WAN:2222, it *SHOULD* SSH you into Home_1:22.

I haven't tested this, but I'd at least start there.

-Brian