6

I'm working on a SSH project. For that I setup everything on client side.

But I'm facing a problem on my SSH server. I tried some SSH servers like OpenSSH. I installed the OpenSSH server on my Windows PC according to these instructions.

It's working fine only when I run the server in debug mode using the command sshd -ddd.
Or else it's not taking any command from my SSH clients.

I need some suggestions on how to install and setup the SSH server on Windows.

2 Answers2

1

Microsoft recently released its own build of OpenSSH for Windows.

See my guide for setting up SSH/SFTP server on Windows using this Microsoft build of OpenSSH.

It does not have a dependency on Cygwin or anything else.

0

I have used the following instructions which worked successfully on Windows Server 2008 R2 which shares the same codebase as Windows 7:

  1. Logon to the Windows machine as a local administrator
  2. Download Cygwin installer
  3. Run setup program
  4. From package selection expand Net category and select OpenSSH
  5. Finish the installation
  6. Run the Cygwin terminal as Administrator (elevated command prompt)
  7. Run the ssh-host-config program
  8. Answer yes to Should privilege separation be used?
  9. Answer yes to Should this script create a local user ‘sshd’ on this machine?
  10. Answer yes to Do you want to install sshd as a service?
  11. Answer no to Should this script create a new local account ‘ssh_server’ which has the required privileges?
  12. When prompted for a username and password for the service, enter an existing local Windows account that has administrator privileges
  13. Answer ntsec tty for Which value should the environment variable CYGWIN have when sshd starts?
  14. Finish the configuration
  15. Start the service with net start sshd