cygwin ssh connection to server port 22 connection refused on localhost

Posted by Steven Wexler on Server Fault See other posts from Server Fault or by Steven Wexler
Published on 2011-07-28T15:45:21Z Indexed on 2012/06/10 4:42 UTC
Read the original article Hit count: 481

Filed under:
|
|

I set up a ssh server through ssh-host-config. Then I started the server.

net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.

When I try to connect I get:

ssh myusername@localhost
ssh: connect to host localhost port 22: Connection refused

I tried to allow port 22 in Windows Firewall, but that didn't change anything. And because I'm trying to ssh locally I don't think Windows Firewall is the culprit.

I'm using Windows 7 and

What should I look for to fix this problem?

© Server Fault or respective owner

Related posts about windows-7

Related posts about firewall