Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Jul 4 '12 at 3:23

This question came from our site for professional and enthusiast programmers.

    
i am asking openssh server installation guidance –  Mukesh Reddy Jul 3 '12 at 9:16
    
If you check your installed services (e.g. by running services.msc), does the OpenSSH service appear in the list? Is it configured for startup type Automatic? –  Lars Rohrbach Jul 4 '12 at 6:28
    
yes it's running in services(with automatic startup)but it is responding only when i run it in debug mode using sshd -ddd command –  Mukesh Reddy Jul 4 '12 at 11:00
    
and is the service configured to Log On As "Local System"? I can confirm that the setup works on my Win7 machine. Does restarting the service generate any errors? (check your System and Application event logs) –  Lars Rohrbach Jul 6 '12 at 6:59
    
service is running, but it's listening the commands from the client, it's listening only when i run it in debug mode using this command sshd -d -d -d –  Mukesh Reddy Jul 7 '12 at 10:52

1 Answer 1

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.