2

I have configured a putty session to login into a server (server A) and make an ssh connection to another server (server B) automatically by adding a remote command in putty (ssh server B) for the putty session to login into server A. This works fine. now I want to access a service running on port 8443 from the browser on my local host. I have tried to create a ssh tunnel in putty using source port as 8443 ad destination as 8443:localhost:8443 but it doesn't work. Please help!!

1

On ServerA you have to create a tunnel to ServerB, or it will not work. The remote command on ServerA must be something like this:

ssh -L:8443:ServerB:8443

Later you create the tunnel on PuTTY, using 8443 as the source, and localhost:8443 as the destination.

  • Thanks @thoriumBR for the answer. The solution worked for me. However I have added the ssh tunnel command in the putty session for ServerA to login directly into ServerB. Then I have added a tunnel in putty using 8443 as source and localhost:8443 as the destination. I am able to access the service running on port 8443 on ServerB from my browser. – Prashanth Oct 4 '17 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.