Tuesday, September 19, 2006

windows sshd with cygwin

Apart from using remote desktop or vnc, its good to have a secondary backup method of communicating with your windows machine.

When you install cygwin, make sure you select openssh. this installs both the ssh client as well as the server.

To setup the server there needs to be a couple of really simple steps.

Right click My Computer, Properties, Advanced, Environment Variables.

Click the "New" button to add a new entry to system variables: variable name is "CYGWIN" variable value is "ntsec tty" without the quotes

also add ";c:\cygwin\bin" to the end of the existing PATH variable. To test this start cmd from the command line and type "bash -l"

To setup sshd as a service, just type "ssh-host-config"
"privilege separation be used", answer yes
"install sshd as a service", answer yes
When the script asks you for "CYGWIN=", your answer should be ntsec tty

Basically its like yes to everything and after that type "cygrunsrv --start sshd" or "net start sshd" to start it off.

you can test it by typing ssh localhost on your machine. Make sure you have your windows firewall to allow inbound ssh traffic.

d: drive is /cygdrive/d , e: drive is /cygdrive/e , etc.

No comments:

dead pi

Well, I guess it has to happen at some point. the home automation raspberry pi has died. Much to do with the stupid Strontium mini SD card. ...