Cygwin connection refused port 22

I installed cygwin on Windows 7, but getting the following error

$ ssh localhost ssh: connect to host localhost port 22: Connection refused 
+4
source share
5 answers

I had the same problem, but I ran it on the CYGWIN command line and it worked:

  ~ : net start sshd 

After that, I ran the ssh -v localhost command and no error message appeared. Hope this helps !.

+5
source

If you encounter this problem in Windows XP, follow these steps to open the port for ssh:

  • Go to the Windows firewall in the security section of the control panel
  • Exceptions-> add port
  • Specify the port name as ssh and number as 22.
  • Select the TCP option
  • Click ok

This will help you open ssh from cygwin

To develop local applications, such as hasoop on windows, change the localhost /ip address in the user list.

+3
source

You can try using port 23 or ask your host provider for the ssh port. Some host providers change the ssh port.

 ssh user@yoursite.com -p 23 
+3
source

Cygwin does not install an SSH server by default, although you can configure sshd if you want. By default, however, do nothing with ssh.

+2
source

Follow the instructions on this link and then follow

  $~ net start sshd $~ ssh localhost 
0
source

Source: https://habr.com/ru/post/1395165/


All Articles