Configure local and remote port forwarding with an SSH tunnel

InstructorMark Shust

Share this video with your friends

Send Tweet

Learn how to configure SSH tunnels with local and remote port forwarding. This allows you to bypass intranet firewalls and setup persistent connections between your local host machine and a remote server.

~ a year ago

This doesn't actually seem to work:

ssh -N -L 8000:yahoo.com:443 aws

Given that :

ssh aws

works as expected because I've set up a ~/.ssh/config file with this alias.

The only thing that happens is the yahoo.com error page is displayed. I thought this was going to be a one liner VPN, but I was wrong.