Jacques44 / node-red-contrib-bigssh

remote command using ssh big node
Apache License 2.0
8 stars 12 forks source link

Error using Private Key - unsupported key format #24

Closed xppx99 closed 3 years ago

xppx99 commented 3 years ago

Hi there,

I'm trying to use the PrivateKey method for autentication on my remote server, but I'm failing to login using this node. The node returns "Cannot parse privatKey: unsupported key format".

I've just generated the key using the command "ssh-keygen" and I've check that I can ssh to remote site using the key with success. Also in my opinion the key has a correct format: -----BEGIN OPENSSH PRIVATE KEY----- Lots of lines with random chars -----END OPENSSH PRIVATE KEY-----

image

The node settings I think are fine: image

Can you please help me? Thanks in advance

Jacques44 commented 3 years ago

Hello, this node relies on ssh2 which is a separate module.

You should try to generate your public/private key pair with a command such as:

ssh-keygen -m PEM -t rsa

That will generate a compatible key

Have a nice day

Jacques44 commented 3 years ago

Hello, this node relies on ssh2 which is a separate module.

You should try to generate your public/private key pair with a command such as:

ssh-keygen -m PEM -t rsa

That will generate a compatible key

Have a nice day