`

Cygwin下运行ssh-host-config

阅读更多

$ 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:

分享到:
评论

相关推荐

    Windows下的SSH安装之Cygwin

    最后,配置 sshd 服务,执行 ssh-host-config 命令,生成 ssh_host_key、ssh_host_rsa_key、ssh_host_dsa_key 等文件,并创建 default ssh_config 和 sshd_config 文件。 Cygwin 的优点是可以在 Windows 上运行 ...

    Cygwin + OpenSSH FOR Windows的安装配置.docx

    配置 OpenSSH 服务需要在 Cygwin 控制台中键入相应的命令,包括 cd /bin 和 ssh-host-config -y。然后,我们需要重新启动电脑,进入普通用户界面,并打开 Cygwin 控制台。 在 Cygwin 控制台中,我们可以使用 ssh ...

    cygwin安装sshd服务并配置无密码登录

    2. 安装sshd服务:打开Cygwin终端,使用`ssh-host-config`命令来配置sshd服务。在执行此命令时,你可能会遇到是否覆盖现有配置文件的询问,根据提示选择`yes`。 ``` Administrator@PC-***$ ssh-host-config ...

    Cygwin + OpenSSH FOR Windows的安装配置.pdf

    然后,需要配置 OpenSSH 服务,例如键入 ssh-host-config -y 命令,以便将 SSH 服务加入到 Windows 的自动启动服务项中。 在配置 OpenSSH 服务时,需要在 command 控制台上键入 ssh-host-config -y 命令,以便执行 ...

    Cygwin+Eclipse搭建Hadoop单机开发环境离线包-cygwin-setup

    - 启动Cygwin终端,使用`ssh-host-config`命令进行配置,按照提示进行操作。 - 生成SSH密钥对,使用`ssh-keygen`命令,这将生成id_rsa和id_rsa.pub文件,用于无密码SSH登录。 - 将公钥(id_rsa.pub)的内容复制到...

    SSH配置和经常出现的报错以及解决方法

    - 对于Windows系统,则可以使用Cygwin或者安装Git Bash等工具来支持SSH服务。 2. **配置SSH服务端:** - 编辑 `/etc/ssh/sshd_config` 文件(对于Debian/Ubuntu系统)或 `/etc/ssh/sshd_config`(对于Red Hat/...

    cygwin安装参数配置常用命令

    - 运行`ssh-host-config`配置SSH服务。 - 启动或停止服务: ```plaintext cygrunsrv -S sshd net start sshd ``` #### 三、中文显示配置 ##### 1. **编辑.inputrc** - 在用户主目录下编辑`.inputrc`文件:...

    Cygwin_初始配置.pdf

    - **启用SSH服务**:通过运行`ssh-host-config`并全部选择Yes来启动Cygwin的SSH服务。确保Cygwin配置为`ntsec`模式,并通过`net start sshd`命令启动SSH服务。 - **生成密钥对**: - **方法A**:使用Cygwin内置的`...

    使用cygwin 运行启动autossh服务

    本文将详细介绍如何在Windows环境下使用Cygwin运行并启动Autossh服务,以确保SSH连接的稳定性和持久性。 **什么是Cygwin?** Cygwin是一款开源软件,它为Windows系统提供了类Unix的开发环境和命令行接口。Cygwin...

    cygwin使用资料大全

    - 运行 `ssh-host-config -y` 来配置 SSH 服务器。 - 在配置过程中选择 `CYGWIN=notty` 选项。 3. **启动 SSH 服务器:** - 使用 `cygrunsrc -S sshd` 或 `net start sshd` 来启动 SSH 服务。 #### 七、自定义...

    Windows下Openssh的安装.pdf

    1. 配置并启动 sshd 服务:在 Cygwin 中执行 ssh-host-config 命令,按照提示选择 yes,并输入 Windows 机器的密码,然后回车。 2. 生成 AuthorizedKeysFile:打开 Cygwin,使用 pwd 命令查看当前用户的 home 目录,...

    windows上安装cygwin问题汇总

    - 如果仍然存在问题,可以尝试使用 `ssh-host-config` 工具重新配置SSH服务。 ##### 6. 编辑`.bashrc`文件 **问题描述**:在使用Cygwin时,有时需要编辑用户的`.bashrc`文件来设置环境变量或自定义脚本等。 **解决...

    hadoop在windows下环境的配置

    运行`ssh-host-config`命令。 3. 当被询问是否使用特权分离时,选择“no”。 4. 当被询问是否将sshd作为服务安装时,选择“yes”。 5. 当被询问关于CYGWIN环境变量的值时,输入`ntsec`。 6. 示例会话如下(用户...

    windows下搭建hadoop平台.pdf

    1. 启动 Cygwin,执行命令“ssh-host-config” 2. 启动 SSH 服务,执行命令“ssh-keygen”生成密钥文件 3. 生成 authorized_keys 文件 安装 Hadoop 1. 下载 Hadoop 安装包(hadoop-0.20.1.tar.gz) 2. 解压 Hadoop...

    收集到的cygwin使用资料

    通过运行 `ssh-host-config -y` 来配置 SSH 服务,按提示完成配置。 ##### 3. 启动 SSH 服务 使用 `cygrunsrc -S sshd` 或者 `net start sshd` 命令启动 SSH 服务。 #### 十、中文显示支持 为了在 Cygwin 中正确...

Global site tag (gtag.js) - Google Analytics