【问题标题】:Meteor MUP failed authentication using ssh ed25519Meteor MUP 使用 ssh ed25519 验证失败
【发布时间】:2023-03-30 18:13:01
【问题描述】:

问题

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

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

失败,其中模块 ssh2(它似乎是处理 the client auth 请求的 MUP 的一部分)无法解析密钥的(未知)格式。

{
  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 也会失败。请注意,从默认 OSX 终端使用我的 ssh-agent 可以按预期工作。

背景

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

问题

是否有任何可能的方法来验证 mup setup 而不使用节点模块 ssh2 或者我是否无法使用 MUP?

【问题讨论】:

    标签: meteor ssh-keys meteor-up ed25519 ssh2


    【解决方案1】:

    我遇到了完全相同的问题。

    ssh2 npm 模块的功能不如命令行 ssh。支持的键类型是有限的。我知道很遗憾不支持 ed25519 格式。有点奇怪,因为它使用 ssh-agent 来获取密钥,但并不支持所有类型。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-31
      • 1970-01-01
      • 2018-03-29
      • 2018-08-11
      • 2014-05-20
      • 2017-01-03
      • 2015-05-06
      • 2015-02-01
      相关资源
      最近更新 更多