How can I visit external website through ssh forwarding through a single port?

I need to ssh into my work computer, and then I need to connect to an external website (hosted entirely at another company) that my work has contracted with using my work machine.

This answer says I can tunnel through a single port using:

ssh -L 8080:server-hostname:80 remote-host

Which is ideal because then I don't have to pipe my entire traffic to my work machine. So if the website I need to access with my work machine is at:

I tried:

ssh -L 8080: me@work

But command returns an error saying Bad local forwarding specification

How can I do this?

1

1 Answer

You need to do it this way:

ssh -L 8080: me@work

and then connect with your browser to:

to get the content of your remote server on .

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like