Last Updated: February 25, 2016
·
6.036K
· Osvaldo Zonetti

SSH Tunneling

Before SSH tunnel:

curl localhost:1337

>> curl: (7) couldn't connect to host

Creating an SSH tunnel:

ssh -NL 1337:localhost:80 username@your-remote-host

After SSH tunnel (on another terminal):

curl localhost:1337

>> <h1>Your site on the remote host</h1>