How to configure SSH tunneling to access a web server behind a firewall?

How do I access a web server behind a firewall? I am developing an application for this web server that is not yet open to the public.

Someone escorted me before that, so I know that this can be done. However, about four months passed, and I could not repeat it again.

I use Putty to connect to a remote machine. From this machine I can open the site http: //dev.server.address: 83 using Firefox. However, I want to open http: // localhost: 80 on my machine to see the same page.

I use server address and port 83 for the "source port", I use localhost: 80 for the "destination port"

+3
source share
4 answers

You need to enter “80” in the source port and dev.server.address:83destination.

[And remember to click the Add button before leaving the configuration screen. If you do not press this, PuTTY will not actually create a tunnel. I fell for it several times myself]

+4
source

Have you tried using 127.0.0.1:80 instead of localhost: 80? I do not use PuTTY, but when I use SSH on my machine, I have to specify 127.0.0.1 instead of localhost.

+2
source

-, ? 80 http://localhost:80 . (, 12345), http://localhost:12345 .

+1
source

On Linux, you can also do this:

$ ssh -f -R 83:localhost:80 user@dev.server.address

If you have an SSH account named "user".

0
source

Source: https://habr.com/ru/post/1723890/


All Articles