使用ssh ed25519的流星MUP身份验证失败 [英] Meteor MUP failed authentication using ssh ed25519

查看:415
本文介绍了使用ssh ed25519的流星MUP身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

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

I want to setup my config using mup setup. However it fails in all possible configs:

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

失败,其中模块ssh2(似乎是MUP处理

Fails, where module ssh2 (which seems to be the part of MUP that handles the client auth requests) can't parse the (unkown) format of the key.

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

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

Fails, because my server only accepts login using key authentication (ssh -i)

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

由于密钥格式未知,ssh2也会失败.请注意,从默认的OSX终端使用我的ssh-agent可以按预期工作.

Fails also with ssh2 due to unknown key format. Note, that using my ssh-agent from default OSX terminal works as expected.

背景

节点ssh2模块似乎不支持ssh ed25519 ,我可以仅使用ssh键登录到服务器.

The node ssh2 module seems to not support ssh ed25519 and I can only login to the server using the ssh key.

问题

在不使用节点模块ssh2的情况下,是否可以通过任何方式验证mup setup?还是我无法使用MUP?

Is there any possible way to authenticate mup setup without using the node module ssh2 or am I locked out from using MUP?

推荐答案

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

I encountered the exact same problem.

ssh2 npm模块的功能不如命令行ssh完整.支持的密钥类型是有限的.我知道不幸的是不支持ed25519格式.有点奇怪,因为它使用ssh-agent获取密钥,但不支持所有类型.

The ssh2 npm module isn't as fully featured as your command line ssh. The types of keys supported are limited. I know that the ed25519 format unfortunately isn't supported. It's a little odd, because it uses ssh-agent to get the key, but doesn't support all types.

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

My only option (short of trying to upgrade the ssh2 module myself) was to use an RSA key.

这篇关于使用ssh ed25519的流星MUP身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆