$ ssh-host-config
*** 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: 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: [] ntsec tty
*** 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: 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) yes
*** Query: Enter the new user name: dev
*** Query: Reenter: dev
*** Query: Create new privileged user account 'dev'? (yes/no) yes
*** Info: Please enter a password for new user dev. 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: Reenter:
*** Info: User 'dev' has been created with password 'passw0rd'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'dev' account.
*** Info: Also keep in mind that the user 'dev' needs read permissions
*** Info: on all users' relevant files for the services running as 'dev'.
*** Info: In particular, for the sshd server all users' .ssh/authorized_keys
*** Info: files must have appropriate permissions to allow public key
*** Info: authentication. (Re-)running ssh-user-config for each user will set
*** Info: these permissions corrently. [Similary restrictions apply, for
*** Info: instance, for .rhosts files if the rshd server is running, etc].
*** Info: The sshd service has been installed under the 'dev'
*** Info: account. To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically
*** Info: after the next reboot.
*** Info: Host configuration finished. Have fun!
Further Reading:
分享到:
相关推荐
最后,配置 sshd 服务,执行 ssh-host-config 命令,生成 ssh_host_key、ssh_host_rsa_key、ssh_host_dsa_key 等文件,并创建 default ssh_config 和 sshd_config 文件。 Cygwin 的优点是可以在 Windows 上运行 ...
windows下生成arm-linux-gcc的工具.省了自己配置和编译的很多麻烦.生成的arm-linux-gcc自己进行过验证,可以使用.
NCL-6.6.2-Cygwin64-Jul-2020.exe
Cygwin下用crosstool-ng编译交叉工具链
ssh-pageant, 一个用于 CYGWIN/MSYS的SSH认证代理 Putty sshCYGWIN/MSYS的SSH认证代理,它将OpenSSH链接到 Putty的Pageant 。 SSH是一个用于 Windows的小型工具,允许你使用来自 CYGWIN Pageant和 MSYS shell 环境的...
这是cygwin下类似于apt-get的官方工具,安装方法: chmod +x apt-cyg mv apt-cyg /usr/local/bin 使用方法: apt-cyg install vim apt-cyg find php
cygwin旧版本,setup-x86-2.874.exe。这个版本用于安装在XP和windows 2003 里面。最新版本无法再xp和windows2003中安装。希望可以帮转到同伴。
cygwin-1.1.8-2-src最新源码
NCL cygwin 安装包,目前为最新版6.5,可在win7, win10下运行
wsl-ssh-agent 与WSL的Windows ssh-agent.exe服务进行接口连接的助手,替代ssh-agent-wsl。 Windows 10具有非常方便的ssh-agent服务(支持持久性和Windows安全性)。 不幸的是,无法从WSL访问它。 该项目旨在通过...
用来在windows下交叉编译arm linux的程序,改交叉编译环境是本人自己经过一周的时间编译出来,已经在项目上验证使用,绝对安全可靠。
cygwin离线安装包5-1
Cygwin下的arm-linuxeabihf-gcc交叉编译器(支持硬件FPU),C库版本:glibc 2.19。
windows下的shell,便于在windows下学习linux
Cygwin是一个在windows平台上运行的类UNIX模拟环境,它对于学习UNIX/Linux操作环境,或者从UNIX到Windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用GNU工具集在Windows上进行嵌入式系统开发,非常有用...
Cygwin的安装方法-带图示,全而精。
cygwin-1.7.5-1
演示如何在 cygwin 下安装 rsync-3.0.8,以及此工具的使用方法,以及如何使用。以及相关工具
Cygwin下的arm-linux-gcc交叉编译器,版本:4.8.4