cat cygwin-auto-started-sshd-service-as-single-user-on-windows-8.md
Cygwin auto started sshd service as single user on Windows 8
On a single user desktop, you might want to run cygwin sshd autostarted as a specific user, without privilege separation. Here's a short reference:
- Disable UAC
- Open a Cygwin terminal
ssh-host-config- Select "no" on privilege separation
- Enter nothing, [], as the value of CYGWIN for the daemon
- Select "yes" to use a different username than
cyg_server - Enter your username, twice
- Enter your password, twice
- Edit (with your favorite editor)
/etc/sshd_config - Edit the
UsePrivilegeSeparationline to sayUsePrivilegeSeparation no(why the hell didn't step 4 do this?) - Go to the windows firewall settings (just type "firewall" into the start menu search - look under "settings")
- Go to "advanced settings"
- Go to "Inbound rules"
- Add a new rule
- Select "Port"
- Select "TCP" and enter "22" as the specific local port
- Select "Allow the connection"
- Select when to apply the rule (default all cases)
- Give it a name, like "SSH"
- Reboot
If you later change your password, you will have to start services.msc, find the Cygwin ssh service and change your credentials on it as well.
Comments