problem with key auth to node

48 views
Skip to first unread message

Jochen Haeberle

unread,
Jul 3, 2019, 3:38:10 PM7/3/19
to rundeck-discuss
Hi,

I am setting up my first rundeck 3.0.23. I have some experiences with earlier versions, but 3.0 gives me some headaches.

I set up rundeck, added a project and some nodes but now I am having problems getting something to execute on a remote node. I created a ECDSA key pair, put the pub key to the node and the private key beneath /etc/rundeck

I can use the key pair to log in to the node manually.

I configured the private key in my project at the SSH Key File Path for the Default SSH Node Executor and  the Default Node File Copier scp. When trying to execute a command on the node I get an error Failed: SSHProtocolFailure: invalid privatekey: [B@33be7cea

Just to make sure I changed the key pair to RSA and got the same error.

What am I doing wrong? Where in the manual can I read how to set this up?

Thanks in advance

Jochen

Reiner Acuña

unread,
Jul 3, 2019, 4:23:45 PM7/3/19
to rundeck-discuss
Hi Jochen,

How did you create the ssh keys?

Generally, that error appears when you don't include the first line:

-----BEGIN RSA PRIVATE KEY-----

and the last line:

-----END RSA PRIVATE KEY-----

Anyway, I created a little guide to use SSH remote nodes with Rundeck.

1. In your remote node, create your SSH pairs keys with:

ssh-keygen

2. Now you copy your public key to authorized keys (in the remote node)

cat .ssh/id_rsa.pub >> .ssh/authorized_keys

3. Copy all private key content and add to Rundeck key store using Key Storage

cat .ssh/id_rsa

4. Add your node to your node source (resources.xml for example) and now you can dispatch your jobs to your new node, here you have a good video guide to do that:

https://www.youtube.com/watch?v=qOA-kWse22g

Greetings!

Jochen Haeberle

unread,
Jul 5, 2019, 1:57:55 PM7/5/19
to rundeck-discuss
Hi,

thanks for the tip. 

The hint from tebriel here https://github.com/rundeck/rundeck/issues/4813 helped me.

Rundeck still does not support ecdsa keys as of 3.0.x

Regards
Jochen 
Reply all
Reply to author
Forward
0 new messages