免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3565 | 回复: 0
打印 上一主题 下一主题

windows 7 安装sshd服务 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:43 |只看该作者 |倒序浏览

windows 7 下 openssh-server 不能运行,只好安装 cygwin 带的sshd服务器了

以前有安装好的cygwin基础软件包,不想重新下载,只下载了openssh-5.8p1-1.tar.bz2,解压

运行 bash --login, 运行 ssh-host-config 产生服务器密钥、安装服务等


  1. $ ssh-host-config
  2. *** Info: Generating /etc/ssh_host_key
  3. *** Info: Generating /etc/ssh_host_rsa_key
  4. *** Info: Generating /etc/ssh_host_dsa_key
  5. *** Info: Generating /etc/ssh_host_ecdsa_key
  6. *** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
  7. *** Info: Creating default /etc/ssh_config file
  8. *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
  9. *** Info: Creating default /etc/sshd_config file
  10. *** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
  11. *** Info: However, this requires a non-privileged account called 'sshd'.
  12. *** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
  13. *** Query: Should privilege separation be used? (yes/no) yes
  14. *** Info: Note that creating a new user requires that the current account have
  15. *** Info: Administrator privileges. Should this script attempt to create a
  16. *** Query: new local account 'sshd'? (yes/no) yes
  17. *** Warning: Creating the user 'sshd' failed!
  18. *** Warning: Couldn't create user 'sshd'!
  19. *** Warning: Privilege separation set to 'no' again!
  20. *** Warning: Check your /etc/sshd_config file!
  21. *** Info: Updating /etc/sshd_config file
  22. *** Warning: The following functions require administrator privileges!
  23. *** Query: Do you want to install sshd as a service?
  24. *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
  25. *** Query: Enter the value of CYGWIN for the daemon: [] CYGWIN
  26. *** Info: On Windows Server 2003, Windows Vista, and above, the
  27. *** Info: SYSTEM account cannot setuid to other users -- a capability
  28. *** Info: sshd requires. You need to have or to create a privileged
  29. *** Info: account. This script will help you do so.
  30. *** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
  31. *** Info: or later. On these systems, it's not possible to use the LocalSystem
  32. *** Info: account for services that can change the user id without an
  33. *** Info: explicit password (such as passwordless logins [e.g. public key
  34. *** Info: authentication] via sshd).
  35. *** Info: If you want to enable that functionality, it's required to create
  36. *** Info: a new account with special privileges (unless a similar account
  37. *** Info: already exists). This account is then used to run these special
  38. *** Info: servers.
  39. *** Info: Note that creating a new user requires that the current account
  40. *** Info: have Administrator privileges itself.
  41. *** Info: No privileged account could be found.
  42. *** Info: This script plans to use 'cyg_server'.
  43. *** Info: 'cyg_server' will only be used by registered services.
  44. *** Query: Do you want to use a different name? (yes/no) no
  45. *** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
  46. *** Info: Please enter a password for new user cyg_server. Please be sure
  47. *** Info: that this password matches the password rules given on your system.
  48. *** Info: Entering no password will exit the configuration.
  49. *** Query: Please enter the password:
  50. *** Query: Please enter the password:
  51. *** Query: Please enter the password:
  52. 这里一直不成功,Ctrl-C退出了
  53. /usr/sbin/sshd
  54. 就启动了 ssh 服务器了

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP