This page describes a quick-and-dirty SSHD setup on Windows XP using Cygwin. This is not official installation instructions for Cygwin, nor does it necessarily result in an enterprise quality setup. Just the minimum needed to get going.
- You must be logged in as a user with Administrator privileges
- Create folder C:\cygwin
- Go To http://www.cygwin.com/ and click "Install or update Cygwin now!"
- Save setup.exe to your desktop
- Run setup.exe
- Install from Internet (default)
- Install Root Directory: C:\cygwin (default)
- Install for All Users (default)
- Local package directory: C:\cygwin\packages
- Set proxy if needed
- Select a download site
- Select Packages
- Search for openssh. It is under the Net category.
- Locate openssh and click "Skip" to select it.
- Click Next. It will list unmet dependencies. Leave "Select required packages" checked and click Next
- The packages will install
- Click Finish
- You now have a basic cygwin installation that includes ssh/sshd
- Make sure that your Windows system has user accounts created for all user that you want to be able to access the system via SSH. It seems to work best if those users have passwords set.
- Double Click on Cygwin icon. This starts a cygwin terminal
- In my case I did not have a password associated with my account and sshd was not allowing me to authenticate until I set a password. So I did this:
- $ passwd yourusername
- enter new password
- This also sets the password on your Windows account
- Run: ssh-host-config, answer "yes" to all questions (take the defaults)
- Start sshd: 'net start sshd'
Make sure your Window's Path has the Cygwin bin directory in it (C:\cygwin\bin). You can do this via the System Information control panel. Click Advanced, then Environment Variables and modify the value of the Path environment variable.
- From another system ssh into your Window's box using the username and password for your Windows account:
- ssh -l username windowsbox.com
- If this works your basic Windows SSHD setup is complete
- To use immediately use the system with GF with SSH password authentication see option 3 in: 3.1SSHAuthentication
- If you want to use key authentication then see the information here: 3.1SSH Setup
How to install OpenSSH sshd server on Windows