在安装cygwin的时候,执行ssh-host-config后显示如下:

木有后面要求输入的内容:
*** Warning: The following functions require administrator privileges!
*** 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: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
以上内容均未出现,在执行net start sshd的时候出现以下问题:

在Windows上安装Cygwin时遇到sshd服务启动失败的问题,可能是由于权限、用户设置、端口冲突或注册表信息错误导致。解决方法包括:创建特殊权限账户、检查22端口、修改/var/empty权限、删除并重新安装sshd服务、调整注册表路径和CYGWIN环境变量等。
最低0.47元/天 解锁文章
6842

被折叠的 条评论
为什么被折叠?



