Reverse SSH Tunneling
With reverse SSH tunneling you can ssh to your Linux machine that sits behind NAT or a firewall.
There are 2 simple steps:
2. Now you can SSH from source to destination through SSH tunneling:
ssh -p 2022 localhost
There are 2 simple steps:
Let's assume that Destination's IP is 192.168.1.10 (Linux box that you want to access).
You want to access from Linux client with IP 138.47.28.28.
Destination (192.168.1.10) <- |NAT| <- Source (138.47.28.28)
1. SSH from the destination to the source (with public IP) using command below:
ssh -R 2022:localhost:22 sourceuser@138.47.28.282. Now you can SSH from source to destination through SSH tunneling:
ssh -p 2022 localhost
Comments
Post a Comment