Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, so the goal is to be able to utilize the dynamic proxy method that OpenSSH provides with the -D option on the Linux client, such that any connection requests made against a local port are forwarded and proxied by the remote ssh server.

Has anyone done this on a windows ssh client? Have information, the point is to only require a remote host to run simply OpenSSH, not an OpenSSH and squid combo.

To reiterate, I am looking for a client on windows that mimics the Linux client's -D option.

share|improve this question

PuTTY is a commonly used ssh client for windows, its also a standalone executable so you can put it on a usb drive and use it anywhere. It has dynamic forwarding with the -D option as well.

share|improve this answer
I am using the dynamic option in putty, with an open-ssh server on the other end. I am getting connection resets instantly whenever I try to use the localport as a proxy. – petekalo Apr 9 '11 at 18:32
@petekalo: Ctrl+rightclick on PuTTY's window and open the event log. It should tell you why connections are being refused. – grawity Apr 9 '11 at 19:07
Also, PuTTY comes with a plink tool which can be used from command-line: plink -v -N -D 1234 user@host – grawity Apr 9 '11 at 19:08
@grawity Thanks for the logging tip! I am getting "Forwarded connection refused by server" in the putty logs AllowTcpForwarding yes is set in sshd_config dont know is going on. – petekalo Apr 9 '11 at 19:52
@petekalo: The message means that connections are refused by the final host, not by the SSH server. Open an interactive SSH session and try opening a TCP connection yourself. For example, socat tcp:<host>:<port> stdio or nmap -sT -p <port> <host> or telnet <host> <port>... – grawity Apr 9 '11 at 20:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .