Installing Cygwin sshd

Posted on Sep 24, 2013

From http://pic.dhe.ibm.com/infocenter/tivihelp/v10r1/index.jsp?topic=%2Fcom.ibm.taddm.doc_7.1.2%2FAdminGuide%2Ft_cmdb_installssh2.html

To install Cygwin sshd, complete the following steps:

  1. Download the Cygwin program from the following Web site: http://cygwin.com/
  2. Run the setup program.
  3. Select the packages to install. In addition to accepting the default packages, select the following packages:
    • From the admin category, select cygrunsrv (version 1.17–1 or later).
    • From the net category, select opensshd (version 4.6p 1–1 or later).
  4. When the installation process completes, start the cygwin bash shell.
  5. From your system information, use the cygwin mkpasswd utility to create an initial /etc/passwd. You can also use the mkgroup utility to create an initial /etc/ group. See the Cygwin User’s Guide for more details.

    For example, the following command sets up the password file, passwd, from the local accounts on your system:

    mkpasswd -1 > /etc/passwd
  6. Run the ssh-host-config program setup.
  7. Configure SSH. Answer Yes to all questions.
  8. Start the SSH server by running the following command:
    net start sshd
  9. Open Windows Firewall and allow inbound access to the following file.
    c:\cygwin\usr\sbin\sshd.exe