`

ssh由于登录失败而无法启动--cygwin安装过程中

阅读更多

在安装cygwin的时候,执行ssh-host-config后显示如下:


木有后面要求输入的内容:

*** 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.

以上内容均未出现,在执行net start sshd的时候出现以下问题:

发生系统错误 1069。
由于登录失败而无法启动服务。

-- 这是由于用户密码输入错误导致的,以后更改用户后sshd也可能发生这个问题,在 services.msc 里的登录标签里更改用户设置即可!


输入账号和密码,启动过程中报如下错误:


在cygwin上面启动老是报错,说无法cygwin无法启动,也木有报具体什么原因,那么只有改成administrator登录,再次尝试就ok了~


假如说启动换成administrator后还是无法启动,那么查看一下sshd服务,看路径对不读,启动报错:

执行net start sshd 后会报:

发生系统错误3

这个时候真的木有招了,网上也找不到答案,但是知道思路了,就是之前安装的已经删除,注册表中保存的还是之前的信息,所以就想着删除服务:

Administrator@localhost~
$ sc delete sshd
[SC] DeleteService 成功


Administrator@localhost~
$ssh-host-config

这个时候就会正常显示,总共要输入的内容都在下面:

######################################################

chmod +r /etc/passwd
chmod +r /etc/group
rm -rf /var/
ssh-host-config
yes
yes
yes
ntsec tty
yes
cygwin
cygwin
yes
$password
$password


net start sshd
mkpasswd -l >/etc/passwd
mkgroup -l > /etc/group
ssh localhost
yes
$hostpassword

######################################################


更多详细信息请查看java教程网 http://www.itchm.com/forum-59-1.html
分享到:
评论

相关推荐

    windows上安装cygwin问题汇总

    **问题描述**:在安装Cygwin的过程中,如果使用的是普通用户权限,可能会导致某些文件或目录无法正确创建或修改,进而影响后续的安装流程。 **解决办法**:确保在安装过程中使用管理员账户登录或者以管理员身份运行...

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

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

    win7下Cygwin搭建Hadoop开发环境

    - [如何在 Cygwin 中安装并配置 SSH](http://blog.csdn.net/souichiro/article/details/6284172) - [cygwin 使用总结](http://blog.csdn.net/cybercode/article/details/7080729) - [在 Windows 下安装 SSH]...

    cygwin_includes.zip

    在Windows环境中,OpenSSHd是用于提供SSH服务的开源实现,允许用户通过安全的网络连接进行远程登录和其他命令行操作。然而,在某些情况下,当尝试安装或启动OpenSSHd服务时,可能会遇到“服务没有报告任何错误”的...

    Hadoop与HBase自学笔记

    - 如果出现启动失败的情况,可以在`C:/cygwin/etc/passwd`文件中添加sshd服务的用户信息。 4. **启动sshd服务** - 在Windows服务管理器中启动sshd服务,服务名称为`CYGWINsshd`。 - **故障排查**:如果启动失败...

    教程openssh中文版

    - 在大多数Linux发行版中,可以通过命令`sudo systemctl start ssh`来启动服务,使用`sudo systemctl restart ssh`来重启服务。 #### 使用方法 **远程登录:** - 命令格式:`ssh 用户名@主机地址`。 - 示例:`ssh ...

    在Windows上安装Hadoop教程

    在Cygwin中安装sshd服务后,需要配置sshd_config文件,包括设置用户权限、端口号、密钥对等。这里可能会遇到"sshd服务启动失败"的问题,这可能由多种原因引起,例如配置错误、端口冲突或者依赖库不完整等。解决方法...

    在windows下编译brave浏览器

    - 注意安装过程中选择正确的架构(32位或64位)。 - 安装完成后,需在新的命令窗口中运行以下命令来配置环境: ```bash npm config set python python2.7 npm config set msvs_version 2015 --global ``` - ...

    Hadoop开发、运维和调优实战考试资料.pdf

    12. 在Windows环境下安装Hadoop,需要先安装Cygwin,因为它提供了一个类似Linux的环境,使得Hadoop可以在Windows上运行。 13. HBase是一个基于Key-Value型的列式数据库,适用于实时读取大数据场景。 14. 在Hadoop...

Global site tag (gtag.js) - Google Analytics