1. 以管理员身份运行 cygwin
2.0 可能需要
cd /var
mkdir empty
chmod 777 empty
2. 执行ssh-host-config
注意以下几个问题的答案:
*** Query: Should privilege separation be used? (yes/no)yes
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: [] ntsec tty
*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) no
***ERROR: There was a serious problem creating a privileged user.*** Query: Do you want to proceed anyway? (yes/no)
*** Warning: Expected privileged user 'cyg_server' does not exist.*** Warning: Defaulting to 'SYSTEM'
3. 按照提示,以后通过:net start sshd 或者 cygrunsrv -S sshd 启动sshd服务