分享

在windows上配置cygwin时出现这样的错误怎么解决啊?

jing 2013-10-31 20:46:49 发表于 疑问解答 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 9 75574
*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.

*** Info: No privileged account could be found.

*** 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) 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.


QQ截图20131031204442.png

已有(9)人评论

跳转到指定楼层
beat_it_ 发表于 2013-10-31 22:18:12
执行下面几行命令试试看:
$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group
$ cygrunsrv -R sshd     删除ssd服务
$ ssh-host-config -y     重新配置
$ cygrunsrv -S sshd      启动服务。
回复

使用道具 举报

pig2 发表于 2013-10-31 21:29:08
我也不太懂,希望高手能帮他解决
回复

使用道具 举报

nettman 发表于 2013-10-31 22:22:34
beat_it_ 发表于 2013-10-31 22:18
执行下面几行命令试试看:
$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group

支持
回复

使用道具 举报

jing 发表于 2013-11-1 10:34:55
执行$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group时
没反应:(
执行$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group
$ cygrunsrv -R sshd     删除ssd服务
$ ssh-host-config -y     重新配置这步时需要输入密码,我根本没设密码啊
回复

使用道具 举报

rsgg03 发表于 2013-11-1 10:39:31
jing 发表于 2013-11-1 10:34
执行$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group时
没反应

window 这个用都很少的。搞这个,基本上都是用linnux系统。实在不行就按个双系统或则装个虚拟机
回复

使用道具 举报

nettman 发表于 2013-11-1 10:47:05
cygwin 报win32 error 5: access denied.
当出现这个错时,是需要管理员权限。关闭cywin,右击cywin选择“以管理员身份运行”打开,然后重试即可。
回复

使用道具 举报

jing 发表于 2013-11-1 13:10:21
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: CreateService:  Win32 error 1726:
Զ▒̹▒▒̵▒▒▒ʧ▒ܡ▒

*** 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
以管理员的身份打开后重新运行又出现了这样的错误
是怎么回事?
回复

使用道具 举报

admin 发表于 2013-11-1 14:19:15
你参考一下这个信息:
ssh-host-config # 引导SSH服务配置
*** Info: Generating /etc/ssh_host_key
*** Info: Generating /etc/ssh_host_rsa_key
*** Info: Generating /etc/ssh_host_dsa_key
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) yes #输入yes
*** Info: Updating /etc/sshd_config file
*** 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 #输入yes
*** Info: Note that the CYGWIN variable must contain at least "ntsec"
*** Info: for sshd to be able to change user context without password.
*** Query: Enter the value of CYGWIN for the daemon: [ntsec] ntsec #输入ntsec
*** 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 2003 Server or later. On 2003 and
*** Info: later systems, it's not possible to use the LocalSystem account
*** Info: for services that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication] via sshd
).
*** Info: If you want to enable that functionality, it's required to create a ne
w
*** Info: account with special privileges (unless a similar account already exis
ts).
*** Info: This account is then used to run these special servers.
*** Info: Note that creating a new user requires that the current account have
*** Info: Administrator privileges itself.
*** Info: No privileged account could be found.
*** 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 #输入no,不指定启动用户
*** Query: Create new privileged user account 'cyg_server'? (yes/no) no #输入no,不指定启动用户
*** ERROR: There was a serious problem creating a privileged user.
*** Query: Do you want to proceed anyway? (yes/no) yes #输入yes
*** Warning: Expected privileged user 'cyg_server' does not exist.
*** Warning: Defaulting to 'SYSTEM'
*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'. Otherwise, it
*** Info: will start automatically after the next reboot.
*** Info: Host configuration finished. Have fun!
Administrator@backup ~
$ cygrunsrv.exe -S sshd # 启动 SSH服务
14. 安装完成后,检查一下系统服务中是否有 CYGWIN sshd 服务, 无启动帐号.
15. 检查系统用户 sshd 是否已启用, 并属于管理员组.
16. 一切正常,即可启动ssh服务. 登录的用户名是sshd, 密码是 sshd用户的密码.
注意: 使用 windows 用户本地认证
mkpasswd -l > /etc/passwd 使用windows 用户的密码
mkgroup -l > /etc/group 使用windows 用户组


配置完成后,你可以使用SecureCRT或者 putty等软件登陆连接ssh
回复

使用道具 举报

nettman 发表于 2013-11-1 14:47:51
jing 发表于 2013-11-1 13:10
Do you want to proceed anyway? (yes/no) yes
*** Warning: Expected privileged user 'cyg_server' does ...

你可以参考这个内容:
http://wenku.baidu.com/link?url=ePF_osabIcLiLHpTebFFs5VEBrEdVeQRKgzyambtO_UABolJqJfNWrUc8qaGi2d5JT-0mH6IbfjyyIfn1pPw9m5aaqcbygyGMYR7Dr-bGZ7
或则直接下载这个附件,跟你的问题有点像
Windows下的SSH安装之Cygwin 2.zip (1023.99 KB, 下载次数: 42)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条