windows 7 下 openssh-server 不能运行,只好安装 cygwin 带的sshd服务器了
以前有安装好的cygwin基础软件包,不想重新下载,只下载了openssh-5.8p1-1.tar.bz2,解压
运行 bash --login, 运行 ssh-host-config 产生服务器密钥、安装服务等
- $ ssh-host-config
-
*** Info: Generating /etc/ssh_host_key
-
*** Info: Generating /etc/ssh_host_rsa_key
-
*** Info: Generating /etc/ssh_host_dsa_key
-
*** Info: Generating /etc/ssh_host_ecdsa_key
-
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
-
*** Info: Creating default /etc/ssh_config file
-
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
-
*** 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/README.privsep.
-
*** Query: Should privilege separation be used? (yes/no) yes
-
*** Info: Note that creating a new user requires that the current account have
-
*** Info: Administrator privileges. Should this script attempt to create a
-
*** Query: new local account 'sshd'? (yes/no) yes
-
*** Warning: Creating the user 'sshd' failed!
-
*** Warning: Couldn't create user 'sshd'!
-
*** Warning: Privilege separation set to 'no' again!
-
*** Warning: Check your /etc/sshd_config file!
-
*** 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
-
*** Query: Enter the value of CYGWIN for the daemon: [] CYGWIN
-
*** 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.
-
-
*** 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) yes
-
*** Info: Please enter a password for new user cyg_server. Please be sure
-
*** Info: that this password matches the password rules given on your system.
-
*** Info: Entering no password will exit the configuration.
-
*** Query: Please enter the password:
-
*** Query: Please enter the password:
-
*** Query: Please enter the password:
-
这里一直不成功,Ctrl-C退出了
-
-
-
/usr/sbin/sshd
-
就启动了 ssh 服务器了
阅读(16090) | 评论(0) | 转发(0) |