I have local computer and remote server. Remote server is isolated and is only accessible with this computer. I want to connect to site from server, let it be https://example.com/site
I tried to make a tunnel via ssh -R 6761:example.com:80 remote-server
. But when I am trying to use wget http://localhost:6761/site
on the remote server - it doesn't work and show 404 whilst wget http://example.com/site
working well on local computer.
What I am doing wrong?