How to tunnel port 80 as well, from Putty?
PuTTY Configuration
- Connection
- SSH
- Tunnels
- SSH
Put in source port 2222
, and destination localhost:80
.
Use "Add new forwarded port" section to add the new ports you want to forward.
If you want to forward multiple ports, PuTTY will let you forward more than one port by putting in their information one at a time and "Add"ing them; repeat to add as many as you need to configure. Each forwarded port should show up in the list of forwarded ports.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
When I SSH tunnel into my VPS, I do so from port
22
to port22
.How could I also tunnel from port
2222
to port80
in the same connection in Putty?In OpenSSH for example, I would do:
ssh [email protected] -L 22:localhost:22 -L 2222:localhost:80 -i ~/.ssh/key
But this time of course, I need a similar way with Putty.
Update 1 - Update for Rubio:
I entered 2222 (source) and 80 (destination) and saved the sessions data. I quited Putty and saw the data wasn't saved, so I try to add this directly from that section but then got an error.
-
Admin over 7 yearsData isn't saved for the session, please see update in question.
-
Rubio over 7 yearsPut in source port "2222", and destination "localhost:80".
-
Kamil Maciorowski over 7 yearsThe "localhost" part is important, as it turned out your answer was incomplete without it. You should have edit your answer. I did it for you. Next time, please, don't put crucial information in a comment only.