0

I am trying to execute the below command in putty.

ssh username@servername

I am getting the below error messsage:

ssh: connect to host servername port 22: Connection refused

I am trying to connect to a Windows server from a Unix server. Please help me!

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
  • This error means that port `22` is closed or nobody is listening to it. Are you sure you have `SSH` daemon running on windows machine? – GreenScape Apr 20 '15 at 10:33
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww Apr 20 '15 at 10:36

1 Answers1

0

The main think is that Windows Server doesn't contain ssh daemon in the box. You could install telnet server from the Windows components and connect from unix to windows machine by telnet command or use 3d-party ssh servers/cygwin.

More available on Server Fault or SO. (How ironic, both topics are closed as offtopic)

Community
  • 1
  • 1
Reishin
  • 1,854
  • 18
  • 21