eval `ssh-agent` --- To install sshd as a service, see http://pigtail.net/LRP/printsrv/cygwin-sshd.html --- McAfee AntiVirus blows * If you can't ssh localhost you have issues. Perhaps ash, /usr/bin/rebaseall will solve your woes. You don't have to reinstall the service, but after running, reboot your computer. --- System Variable: CYGWIN = ntsec tty --- Otherwise: * > ssh-host-config When the script asks you about "privilege separation", answer yes. When the script asks about "local user", answer yes. When the script asks you about "install sshd as a service", answer yes When the script asks you for "CYGWIN=", your answer should be ntsec tty * Add CYGWIN = ntsec tty and ;c:\cygwin\bin to PATH in env. * ssh-host-config Yes for priv separation, local user, sshd service, CYGWIN = ntsec tty * net start sshd Also reboot to test. --- build@winbuild5 06/23 4:26:34pm /var [21]% ssh-host-config Generating /etc/ssh_host_key Generating /etc/ssh_host_rsa_key Generating /etc/ssh_host_dsa_key Generating /etc/ssh_config file Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Should this script create a local user 'sshd' on this machine? (yes/no) yes Do you want to install sshd as service? (Say "no" if it's already installed as service) (yes/no) yes You appear to be running Windows 2003 Server or later. On 2003 and later systems, it's not possible to use the LocalSystem account if sshd should allow passwordless logon (e. g. public key authentication). If you want to enable that functionality, it's required to create a new account 'sshd_server' with special privileges, which is then used to run the sshd service under. Should this script create a new local account 'sshd_server' which has the required privileges? (yes/no) yes Please enter a password for new user 'sshd_server'. Please be sure that this password matches the password rules given on your system. Entering no password will exit the configuration. PASSWORD=xxxxx Which value should the environment variable CYGWIN have when sshd starts? It's recommended to set at least "ntsec" to be able to change user context without password. Default is "ntsec". CYGWIN=ntsec tty Host configuration finished. Have fun! build@winbuild5 06/23 4:32:16pm /var [22]% net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully --- If you screw it up you have to delete /etc/ssh_* and /etc/sshd_* THEN remove the service C:\> sc query sshd C:\> sc delete sshd Rerun ssh-host-config