Chinaunix首页 | 论坛 | 博客
  • 博客访问: 663779
  • 博文数量: 102
  • 博客积分: 2241
  • 博客等级: 大尉
  • 技术积分: 1670
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-08 10:08
文章分类

全部博文(102)

文章存档

2013年(6)

2012年(15)

2011年(81)

分类: 网络与安全

2011-05-24 00:43:17


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 服务器了

阅读(16021) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~