Phi*_*ayo 5 windows-7 services cygwin openssh sshd
安装 cygwin sshd 后,sshd 服务失败并显示:
Error 1069: The service did not start due to a logon failure
Run Code Online (Sandbox Code Playgroud)
我尝试授予 cyg_server 标准用户和管理员访问权限。图形界面和cygrunsrv.exe -S sshd.
编辑:什么对我有用:
Install cyglsa-config
Run sshd with SYSTEM account
chown SYSTEM /var/empty
Run Code Online (Sandbox Code Playgroud)
对于 Windows 2003 及更高版本,ssh-host-config脚本建议使用服务帐户,以便可以设置正确的权限(因为内置 SYSTEM 帐户已在 W2003 中删除了某些权限)。
然而,cygwin 团队开发了另一种策略,我很幸运(无论如何,在 Windows 7 和 Server 2008 R2 上)。如果您使用cyglsa-config脚本设置 cygwin LSA 身份验证包,则可以将 SSHD 服务切换回使用系统帐户,并且不需要密码(并且 ssh 服务器也工作得更好)。
cygwin 声明和此功能的描述位于http://cygwin.com/ml/cygwin-developers/2006-11/msg00000.html
有关更多详细信息,请参阅http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd2