I have three machines:
- I have physical access to
- I want to ssh into
host1. However, it is behind carrier-grade NAT, so I can't ssh directly to it from
relayhostis set up to help me connect from
I want to ssh from each
relayhost, then have
relayhost relay my ssh connection from
This answer suggests I can create a tunnel on
ssh -L if I know the URI or IP address of
host1. However, I don't know that because of the carrier grade NAT. So I can imagine a process to relay it like this:
relayhostis watching for this connection and when it sees it says "I'm going to create a tunnel from my port 9999 to this connection"
Is this the right way to go about this? How do I do step 2?