Setting up Cygwin and SSH on Windows XP


1. Download cygwin from http://cygwin.com/. Run the setup program and select the packages; get the default packages and the following packages.

2. Edit C:/cygwin/Cygwin.bat. Add the following setting for the CYGWIN environmental variable:

      set CYGWIN=binmode tty ntsec

3. Start a cygwin bash shell; start -> programs -> cygwin.

4. Check that cygrunsrv is installed by typing "cygrunsrv -S sshd". It should responds with an error from cygrunsrv like "service does not exist". If getting "command cygrunsrv not found", install cygrunsrv.

5. Run ssh-host-config. Answer yes to all the questions.

6. Start X window system with "startx" from Cygwin bash shell.

7. Connect with ssh to a remote server from xterm, a graphic terminal.

      ssh -Y login_name@wyrd.hood.edu

      The parameter -Y enables trusted X11Forwarding.

8. Start a graphic program, such as:

      kate &