【问题标题】:ssh-host-config reset after reboot and shh -vvv localhost /ipaddress not working重新启动后 ssh-host-config 重置并且 ssh -vvv localhost /ip 地址不起作用
【发布时间】:2016-06-14 03:02:37
【问题描述】:

我已经在 cygwin 中配置了 ssh-host-config cygcheck (cygwin) 2.4.1..

当我在 windows 7 上设置 ssh-host-config 时,ssh 登录对我的系统有效。系统 ssh 日志重新启动后无法正常工作,并且 localhost 检查失败并显示以下日志。

如果你解决了这个问题,请帮忙。

ssh -v 本地主机 OpenSSH_7.1p2,OpenSSL 1.0.2f 2016 年 1 月 28 日 debug1:读取配置数据 /etc/ssh_config debug1:连接到 localhost [127.0.0.1] 端口 22。 debug1:建立连接。 debug1:身份文件 /home/psing/.ssh/id_rsa 类型 1 debug1:key_load_public:没有这样的文件或目录 debug1:身份文件/home/psing/.ssh/id_rsa-cert type -1 debug1:身份文件 /home/psing/.ssh/id_dsa 类型 2 debug1:key_load_public:没有这样的文件或目录 debug1:身份文件/home/psing/.ssh/id_dsa-cert type -1 debug1:身份文件 /home/psing/.ssh/id_ecdsa 类型 3 debug1:key_load_public:没有这样的文件或目录 debug1:身份文件/home/psing/.ssh/id_ecdsa-cert type -1 debug1:key_load_public:没有这样的文件或目录 debug1:身份文件/home/psing/.ssh/id_ed25519 type -1 debug1:key_load_public:没有这样的文件或目录 debug1:身份文件/home/psing/.ssh/id_ed25519-cert type -1 debug1:为协议 2.0 启用兼容模式 debug1:本地版本字符串 SSH-2.0-OpenSSH_7.1 debug1:远程协议版本2.0,远程软件版本OpenSSH_7.1 debug1:匹配:OpenSSH_7.1 pat OpenSSH* compat 0x04000000 debug1:向 localhost:22 身份验证为“psing” debug1: SSH2_MSG_KEXINIT 已发送 debug1:收到 SSH2_MSG_KEXINIT debug1: kex: server->client chacha20-poly1305@openssh.com 无 debug1: kex: 客户端->服务器 chacha20-poly1305@openssh.com 无 debug1:期待 SSH2_MSG_KEX_ECDH_REPLY debug1:服务器主机密钥:ecdsa-sha2-nistp256 SHA256:Khz11YkVERoV1mlVERovPEm/x/AeLaUJveN49ig+Ag0 debug1:主机 'localhost' 已知并与 ECDSA 主机密钥匹配。 debug1:在 /home/psing/.ssh/known_hosts:4 中找到密钥 debug1: SSH2_MSG_NEWKEYS 已发送 debug1:期待 SSH2_MSG_NEWKEYS debug1:收到 SSH2_MSG_NEWKEYS debug1:SSH2_MSG_SERVICE_REQUEST 已发送 debug1:收到 SSH2_MSG_SERVICE_ACCEPT debug1:可以继续的身份验证:publickey、password、keyboard-interactive debug1:下一个认证方式:publickey debug1:提供 RSA 公钥:/home/psing/.ssh/id_rsa debug1:可以继续的身份验证:publickey、password、keyboard-interactive debug1:跳过 ssh-dss 密钥 /home/psing/.ssh/id_dsa 不在 PubkeyAcceptedKeyTypes 中 debug1:提供 ECDSA 公钥:/home/psing/.ssh/id_ecdsa debug1:可以继续的身份验证:publickey、password、keyboard-interactive debug1:尝试私钥:/home/psing/.ssh/id_ed25519 debug1:下一个身份验证方法:键盘交互 debug1:可以继续的身份验证:publickey、password、keyboard-interactive debug1:下一个认证方式:密码 psing@localhost 的密码:

【问题讨论】:

    标签: cygwin


    【解决方案1】:

    用户名区分大小写

    用户名是在.shh目录中创建的,区分大小写。

    所以当登录 SSH 主机系统时,请注意在 SSH 目录中创建的用户名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-17
      • 2016-11-30
      • 2021-11-26
      • 2011-10-09
      • 1970-01-01
      相关资源
      最近更新 更多