SSH port forwarding with Cygwin

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to use my Windows box as a tunnel to a remote host.

On my Windows box I'm running Cygwin SSH like this:

me@WINDOWS> ssh -g -L

From my Windows box I can connect to the remote host:

me@WINDOWS> ssh -p 6789 me@localhost

logs into successfully.

The IP of my Windows box is  If I use my
machine's IP address instead of "localhost", it doesn't work:

me@LOCAL_WINDOWS> ssh -vvv -p 6789 me@
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 6789.
debug1: Connection established.
debug1: identity file /home/.ssh/identity type -1
debug1: identity file /home/.ssh/id_rsa type -1
debug1: identity file /home/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

I see the message "Accept: connection refused" in the window where I'm
sshing with the port forwarding.

My /etc/hosts.allow and /etc/hosts.deny are both empty.  I'd
appreciate any suggestions.



Site Timeline