Friday, August 3, 2012

Cygwin and SSH server

To setup SSH on windows using cygwin....first install cygwin! Make sure you check off the ssh package. Then open up the cygwin shell and do the following:

ssh-host-config -y

when prompted with the CYGWIN=
tty ntsec
and then finally
cygrunsrv -S sshd
You might hit ERRORS wither on first start or 2 years later! Most common that I've run into are:
  • Win32 error 1069: The service did not start due to a logon failure.
  • Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started.
For the first one go to services in windows and lookup CYGWINsshd. In properties under "log on" tab make sure your user (usually cyg_server) AND password match the on in your cygwin. So type
passwd cyg_server
in your cygwin shell to change it ... For the second problem just repeat the steps from STEP one to reconfigure.. Cheers!

No comments:

Post a Comment