Tunneling HTTPS traffic via a PUTTY/SSL tunnel with SOCKS

httpsputtysocks-proxy

I have configured a SOCKS ssh tunnel to a remote proxy, and set my Firefox to use localhost:<port> as a SOCKS proxy. My intention is to tunnel outgoing HTTP/S connections from my machine via a specific 3rd party server I own (on AWS).

In my testing, HTTP UTLs are forwarded properly (e.g. when I access http://jsonip.com/ from my computer I do get the server's IP)

However, whenever I try to reach an HTTPS address, I get this error:

The proxy server is refusing connections

How do I debug/fix it?

My PUTTY tunnel config is simply (some random source port number + dynamic checked):

enter image description here

P.S. I'm aware I might need to manually accept SSL certificates. The reason I'm doing this is to resolve problems using gmail as an outbound SMTP service.

Best Answer

I managed to pull this off by switching from PUTTY to command line SSH:

ssh -D 9998 user@myserver.com

or

ssh -ND 9998 user@myserver.com

(Not sure which one of these did it)

Related Question