win平台下使用了cygwin 敲击指令
ssh-host-config出现以下错误
Query: Do you want to proceed anyway? (yes/no) yes
* Warning: Expected privileged user ‘cyg_server’ does not exist.
* Warning: Defaulting to ‘SYSTEM’
/usr/bin/cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
▒ܾ▒▒▒▒ʡ▒
* ERROR: Installing sshd as a service failed!
* Warning: Host configuration exited with 2 errors or warnings!
* Warning: Make sure that all problems reported are fixed,
* Warning: then re-run ssh-host-config.
解决方案是:
讲cygwin的Terminal 以管理员身份运行