免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: hfy9013
打印 上一主题 下一主题

[系统管理] cygwin下配置ssh [复制链接]

论坛徽章:
0
11 [报告]
发表于 2013-01-19 12:09 |只看该作者
回复 9# blackold


    我想问一下,我这个配置失败,和jdk的配置有关系吗?
  1. java -version
复制代码
我用个命令测试结果是这样的

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
12 [报告]
发表于 2013-01-19 12:22 |只看该作者
回复 10# hfy9013
  1. chmod a+w /var
复制代码

论坛徽章:
0
13 [报告]
发表于 2013-01-20 18:45 |只看该作者
本帖最后由 hfy9013 于 2013-01-20 18:47 编辑

回复 12# blackold

这次怎么又出现这样的错误了?我的这个询问为什么和别人的不一样?(红色圈里)
   
  1. Huangfu@Huangfu-PC ~
  2. $ ssh-host-config

  3. *** Warning: Running this script typically requires administrator privileges!
  4. *** Warning: However, it seems your account does not have these privileges.
  5. *** Warning: Here's the list of groups in your user token:

  6.     None
  7.     Users
  8.     HomeUsers

  9. *** Warning: This usually means you're running this script from a non-admin
  10. *** Warning: desktop session, or in a non-elevated shell under UAC control.

  11. *** Warning: Make sure you have the appropriate privileges right now,
  12. *** Warning: otherwise parts of this script will probably fail!

  13. *** Query: Are you sure you want to continue?  (Say "no" if you're not sure
  14. *** Query: you have the required privileges) (yes/no) yes

  15. *** Info: Generating /etc/ssh_host_key
  16. *** Info: Generating /etc/ssh_host_rsa_key
  17. *** Info: Generating /etc/ssh_host_dsa_key
  18. *** Info: Generating /etc/ssh_host_ecdsa_key
  19. *** Info: Creating default /etc/ssh_config file
  20. *** Info: Creating default /etc/sshd_config file
  21. *** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
  22. *** Info: However, this requires a non-privileged account called 'sshd'.
  23. *** Info: For more info on privilege separation read /usr/share/doc/openssh/READ                                                                                                    ME.privsep.
  24. *** Query: Should privilege separation be used? (yes/no) no
  25. *** Info: Updating /etc/sshd_config file

  26. *** Query: Do you want to install sshd as a service?
  27. *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
  28. *** Query: Enter the value of CYGWIN for the daemon: [] ntsec tty
  29. *** Info: On Windows Server 2003, Windows Vista, and above, the
  30. *** Info: SYSTEM account cannot setuid to other users -- a capability
  31. *** Info: sshd requires.  You need to have or to create a privileged
  32. *** Info: account.  This script will help you do so.

  33. *** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
  34. *** Info: or later.  On these systems, it's not possible to use the LocalSystem
  35. *** Info: account for services that can change the user id without an
  36. *** Info: explicit password (such as passwordless logins [e.g. public key
  37. *** Info: authentication] via sshd).

  38. *** Info: If you want to enable that functionality, it's required to create
  39. *** Info: a new account with special privileges (unless a similar account
  40. *** Info: already exists). This account is then used to run these special
  41. *** Info: servers.

  42. *** Info: Note that creating a new user requires that the current account
  43. *** Info: have Administrator privileges itself.

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

  45. *** Info: This script plans to use 'cyg_server'.
  46. *** Info: 'cyg_server' will only be used by registered services.

  47. *** Query: Do you want to use a different name? (yes/no) no

  48. *** Query: Create new privileged user account 'cyg_server'? (yes/no) no
  49. *** ERROR: There was a serious problem creating a privileged user.
  50. *** Query: Do you want to proceed anyway? (yes/no) yes
  51. *** Warning: Expected privileged user 'cyg_server' does not exist.
  52. *** Warning: Defaulting to 'SYSTEM'
  53. /usr/bin/cygrunsrv: Error installing a service: OpenSCManager:  Win32 error 5:
  54. ▒ܾ▒▒▒▒ʡ▒

  55. *** ERROR: Installing sshd as a service failed!

  56. *** Warning: Host configuration exited with 2 errors or warnings!
  57. *** Warning: Make sure that all problems reported are fixed,
  58. *** Warning: then re-run ssh-host-config.
复制代码

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
14 [报告]
发表于 2013-01-20 21:14 |只看该作者
回复 13# hfy9013
  1. Query: Create new privileged user account 'cyg_server'? (yes/no) no
复制代码
试试 yes

论坛徽章:
0
15 [报告]
发表于 2013-01-21 09:49 |只看该作者
回复 14# blackold
为什么要设置密码?还登陆不上?反复提问?
  1. *** Query: Do you want to use a different name? (yes/no) no
  2. *** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
  3. *** Info: Please enter a password for new user cyg_server.  Please be sure
  4. *** Info: that this password matches the password rules given on your system.
  5. *** Info: Entering no password will exit the configuration.
  6. *** Query: Please enter the password:
  7. *** Query: Reenter:

  8. *** Warning: Creating the user 'cyg_server' failed!  Reason:
  9. ▒▒▒▒ϵͳ▒▒▒▒ 5▒▒

  10. ▒ܾ▒▒▒▒ʡ▒


  11. *** Info: Please enter a password for new user cyg_server.  Please be sure
  12. *** Info: that this password matches the password rules given on your system.
  13. *** Info: Entering no password will exit the configuration.
  14. *** Query: Please enter the password:
  15. *** Query: Reenter:

  16. *** Warning: Creating the user 'cyg_server' failed!  Reason:
  17. ▒▒▒▒ϵͳ▒▒▒▒ 5▒▒

  18. ▒ܾ▒▒▒▒ʡ▒


  19. *** Info: Please enter a password for new user cyg_server.  Please be sure
  20. *** Info: that this password matches the password rules given on your system.
  21. *** Info: Entering no password will exit the configuration.
  22. *** Query: Please enter the password:
  23. *** Query: Reenter:
  24. *** Query: Please enter the password:
  25. *** Query: Reenter:

  26. *** Warning: Creating the user 'cyg_server' failed!  Reason:
  27. ▒▒▒▒ϵͳ▒▒▒▒ 5▒▒

  28. ▒ܾ▒▒▒▒ʡ▒


  29. *** Info: Please enter a password for new user cyg_server.  Please be sure
  30. *** Info: that this password matches the password rules given on your system.
  31. *** Info: Entering no password will exit the configuration.
  32. *** Query: Please enter the password:
复制代码

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
16 [报告]
发表于 2013-01-21 14:38 |只看该作者
回复 15# hfy9013


    汗!

你输入密码了吗?
你输入的密码符合你系统的设置吗?

论坛徽章:
0
17 [报告]
发表于 2013-01-21 17:12 |只看该作者
回复 16# blackold


    百度一下午,原来用管理员运行就行了。我咋发觉win7这么麻烦。。。。。

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:50:282015年亚洲杯之朝鲜
日期:2015-03-13 22:47:33IT运维版块每日发帖之星
日期:2016-01-09 06:20:00IT运维版块每周发帖之星
日期:2016-03-07 16:27:44
18 [报告]
发表于 2013-01-21 18:04 |只看该作者
回复 17# hfy9013


    这样啊。谢谢分享。学习!

论坛徽章:
0
19 [报告]
发表于 2013-07-16 11:02 |只看该作者
您好, 我sygwin 也出现过这样的问题  ,您说是权限设置的事, 请教一下,如何设置。 万分感谢

论坛徽章:
0
20 [报告]
发表于 2013-07-17 18:01 |只看该作者
上面回复了吧,用管理员设置吧,这样出问题的机率最小
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP