rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
86 stars 45 forks source link

authenticate using a username password #64

Closed sandeepdaggupati closed 7 years ago

sandeepdaggupati commented 7 years ago

Hi Greg,

Can I use the password stored in the Key Storage to authenticate to the ec2 nodes?

We would like to setup a rundeck service account on all the ec2 nodes in our environment and use the password stored in the Key Storage to ssh into the nodes instead of private keys.

Thanks, Sandeep.

gschueler commented 7 years ago

yes either configure the project with a default key storage key, or set the ssh-key-storage-path attribute on the ec2 nodes. you can do that in the plugin mapping, e.g.:

ssh-key-storage-path.default=keys/ec2/${node.name}.key
gschueler commented 7 years ago

also set the auth type to "password":

ssh-authentication.default=password
sandeepdaggupati commented 7 years ago

Thanks Greg. It worked