Rundeck: Failed: SSHProtocolFailure: invalid privatekey: [B@63399dc3

Created on 10 May 2019  路  3Comments  路  Source: rundeck/rundeck

Issue type: Bug report

My Rundeck detail

  • Rundeck version: Rundeck 3.0.21-20190424
  • install type: (rpm,deb,war,launcher?): war
  • OS Name/version:
  • DB Type/version: mysql? postgres? h2?..

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

Most helpful comment

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.

All 3 comments

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:

http://www.jcraft.com/jsch/

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.

Was this page helpful?
0 / 5 - 0 ratings