Jacques44 / node-red-contrib-bigssh

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

Cannot parse private key: unsupported key format #33

Open flashbackpa opened 2 years ago

flashbackpa commented 2 years ago

Hi, thank you so much for your work on this node. I'm trying to configure and use it, but I'm not able to let it read the private ssh key. I copied it from the destination pc (debian machine, key generated via ssh-keygen), and the error in the subject appears. I tried to convert the private key to ssh2 format, with no success. Where am I wrong ? Thank you.

Jacques44 commented 2 years ago

Hello. You can configure the node (algorithms, ciphers, host key formats, etc.) Doc is here: https://github.com/mscdex/ssh2 For my tests, I use the following: ssh-keygen -t rsa You should try your key using ssh from the command line

PS: I'm just a user of the ssh2 library...

ndragon798 commented 2 years ago

Hey I'm also running into this. I have tried rsa and ssh-ed25519 as suggested by the ssh2 library. I'm still getting unsupported key format. Is there a more verbose way to log the ssh connections?

ndragon798 commented 2 years ago

@flashbackpa If you are still having issues with this I found that https://flows.nodered.org/node/node-red-contrib-ssh-v2-reconnection works without much hassle.

flashbackpa commented 2 years ago

Thank you so much @ndragon798, I'll take a look.

mdisabato commented 5 months ago

I am having the same problem. The keys work for SSH and command line sends from Home Assistant. Just not from Node-RED.