【问题标题】:Could not load id_rsa as a RSA1 public key无法将 id_rsa 作为 RSA1 公钥加载
【发布时间】:2012-11-16 09:07:39
【问题描述】:

我在 Windows 7 64 位上使用 cygwin,我正在尝试 ssh -vvv localhost

OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/habdulmalak/.ssh/id_rsa" as a RSA1 public key

使用ssh-keygen -t rsa 生成公钥,并将公钥添加到authorized_keys 文件中。

有什么线索吗?

【问题讨论】:

标签: ssh


【解决方案1】:

简而言之,它并不表示错误。这是正常的。

你可以在这里参考我的回答:
Trying to use RSA Keys to SSH into EC2, Getting: Incorrect RSA1 identifier... permission denied (public key)

【讨论】:

    【解决方案2】:

    如 cmets 中所述,这个错误是可以的。

    你检查过 /etc/hosts.deny 了吗?我猜你里面有一个sshd: x.x.x.x 条目

    【讨论】:

      【解决方案3】:

      实际上,我意识到我得到同样错误的原因是因为 sshd 没有在我试图连接的 VM 服务器上运行:) 运行它为我解决了问题。

      【讨论】:

        猜你喜欢
        • 2012-04-14
        • 2012-05-29
        • 2015-05-14
        • 2013-07-22
        • 1970-01-01
        • 2022-10-05
        • 1970-01-01
        • 2021-08-17
        • 1970-01-01
        相关资源
        最近更新 更多