Posts

Showing posts with the label ssh

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: 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 ) 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.28 2. Now you can SSH from source to destination through SSH tunneling: ssh -p 2022 localhost