Secure Shell Daemon (sshd)

Running an SSH daemon can be very useful, especially if you’d like to securely transfer files too and from your Windows box. The installation process is quite straightforward, but part of it includes the automatic creation of the ‘cyg_server’ account, which you will see at login as an alternate user. This doesn’t really affect your use of windows, but cosmetically it may not be what you prefer.

First, install openssl if you haven’t already, and run the following command

  1. Should Privilege Separation be used? Answer: Yes.
  2. New local account ‘sshd’? Answer: Yes
  3. Do you want to install sshd as a service? Answer: Yes
  4. Enter the value of CYGWIN for the daemon: [] Answer: ntsec tty
  5. Do you want to use a different name? Answer: No
  6. Create new privileged user account ‘cyg_server’? Answer: Yes
  7. Lastly, it will ask you for a password for the account, which can’t be nul.

The new service controlled by running

Running either of these commands should have the desired effect, but they do not have any output, so it isn’t obvious that they are doing anything. Note that the service will start automatically with windows. Thanks to Lifehacker for this info.

To confirm your service is running, press the start button, type in ‘run’ and when the command box appears, type in ‘services.msc’. If you scroll through the list of services running, you should be able to see the secure shell daemon:

SSHD running as a windows service