Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cygwin connection refused for port 22

Tags:

ssh

cygwin

I have installed cygwin in windows 7 but i get the following error

    $ ssh localhost
    ssh: connect to host localhost port 22: Connection refused
like image 717
jan5 Avatar asked Feb 07 '12 06:02

jan5


People also ask

How do I connect to port 22?

Type the host name or IP address of the SSH server into the “Host name (or IP address)” box. Ensure the port number in the “Port” box matches the port number the SSH server requires. SSH servers use port 22 by default, but servers are often configured to use other port numbers instead. Click “Open” to connect.


1 Answers

I faced the same problem but I ran this on the CYGWIN command line and it worked :

 ~ : net start sshd

After that I executed the command ssh -v localhost and the error message didn't show up. Hope that this helps !.

like image 66
deltascience Avatar answered Sep 27 '22 22:09

deltascience