Issue type: Bug report
My Rundeck detail
Expected Behavior
Added a node and stored the private key. The expectation is I could run command in my remote node.
How to Reproduce
After running a command in remote node, it is throwing below error
Failed: SSHProtocolFailure: invalid privatekey: [B@63399dc3
HI @manojfim
You do include the first and the last line of your key in key store?:
-----BEGIN RSA PRIVATE KEY-----
and this:
-----END RSA PRIVATE KEY-----
Also, make sure that you're using the JSch supported ciphers:
Greetings!
Thanks for responding so quickly. I was using OPENSSH format key. when i switched to RSA it worked.
In case anyone comes here looking for this answer, ssh-keygen -p -m PEM -f /path/to/openssh/key will re-write the private key in the correct format.
Most helpful comment
In case anyone comes here looking for this answer,
ssh-keygen -p -m PEM -f /path/to/openssh/keywill re-write the private key in the correct format.