Want to set up a proxy to access a system in a private subnet.
- We have a system A in our Office network.
- System B and System C are in cloud. System B has a public IP.
- Need to access System C in Cloud.
I am trying to use autossh to accomplish this. This is what i have done:
- Password less SSH access from System A to System B is setup.
- Passwordless SSH Access from System B to System C is setup.
- Running autossh as a systemd service on System B:
ExecStart=/usr/bin/autossh -M 0 -4 -N sshuser@System A -g \
-R 0.0.0.0:1234:System C:1234 \
-o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -o BatchMode=yes -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa
After this when i access System C:1234 i don't get the resource. Any help is appreciated.
sshon its own first. Once it does what you want, you can move on toautossh. If you've already done that and would like to have us take a look at the problem, please Include the (redacted if needed) output from the commands that do not work as expected.ssh jump host. For example this could help. If you run into problems, come back and please try to follow the advice on my previous comment, on how to report them.