代码之家  ›  专栏  ›  技术社区  ›  Jankapunkt

Meteor MUP使用ssh ed25519进行身份验证失败

  •  0
  • Jankapunkt  · 技术社区  · 6 年前

    我想使用 mup setup . 但是,它在所有可能的配置中都失败:

    {
      host: '1.2.3.4',
      username: 'root',
      pem: '/home/user/.ssh/id_ed25519',
    }
    

    出现故障,其中模块 ssh2 the client auth 请求)无法分析密钥的(未知)格式。

    {
      host: '1.2.3.4',
      username: 'root',
      password: '...'
    }
    

    失败,因为我的服务器只接受使用密钥身份验证的登录( ssh -i

    {
      host: '1.2.3.4',
      username: 'root',
      // or leave blank to authenticate using ssh-agent
    }
    

    也失败于 ssh2

    出身背景

    节点 ssh2 模块似乎 not support ssh ed25519 我只能使用ssh密钥登录到服务器。

    问题

    mup设置

    1 回复  |  直到 6 年前
        1
  •  1
  •   Mikkel    6 年前

    ssh2 npm模块没有命令行ssh功能齐全。支持的密钥类型有限。我知道ed25519格式不幸不受支持。这有点奇怪,因为它使用ssh代理获取密钥,但不支持所有类型。

    我唯一的选择(除了自己尝试升级ssh2模块)是使用RSA密钥。

    推荐文章