Use PuTTY behind a Proxy

I would like to use PuTTY behind a Proxy, but every time I try to access PuTTY, I get a black window with one green square and not able to input any kind of data...

enter image description hereenter image description here

What do I need to do to get access to my server using PuTTY? I can connect with my iPad, so no issues connecting to the server...

EDIT:
This is what my netstat looks like:
enter image description here

9

3 Answers

This is most likely not the answer you want, but if your network admin has correctly configured the proxy, then you can't connect through it.

I am guessing they don't want to allow non-http(s) traffic, so there won't be much you can do about it. You could try running your ssh server on port 80 or port 443 and see if they allow you to connect to it that way.

3

I assume you are sure about the HTTP Proxy Setting and the Port

If not try with 8080 and the ip address instead of the dns name of the proxy

It could be a problem with putty not using the proxy you need to

  1. Load your saved session
  2. Set the Proxy
  3. Save your session
4

Check out

Specifically proxyTunnel.ps1

Tunnel in a "tunnel" scenario...

Update: If you edit the script you can use it with "oneclick" (right click > run with powershell), what you have to edit are 3 lines (4, if localhost is not suitable):

[String]$bindIP = "127.0.0.1", #localhost
[Int]$bindPort = 5555, #local port
[String]$destHost = "destination.host.name", #or IP address
[Int]$destPort = 443 #destination port

After script startup powershell will listen on port 5555, so you can configure putty to connect to localhost:5555, and powershell will proxy the packets to the destination. Of course you will have to experiment with ports, connection types, not all might allowed through the proxy.

In my case there is a squid proxy with kerberos authentication only, but powershell does the job just fine. At the destination I have a mikrotik router with ssh configured to port 443, but any other ssh server would work.

One thing I noticed so far (I discovered the script only yesterday) is that it will not revert to the listening state, so putty will not reconnect upon disconnect.

Of course, powershell is a Windows thing, so works only there...

1

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