How to setup password to access nodes via ssh

3,878 views
Skip to first unread message

Olivier GRUEL

unread,
Jan 18, 2017, 6:55:41 PM1/18/17
to rundeck-discuss
Hi

I'm testing Rundeck and after many hours, I can't launch commands on distant nodes

Here is my project.properties

#Project EXPLOITATION configuration, generated
#Tue Jan 17 11:22:04 CET 2017
project.name=EXPLOITATION
resources.source.1.config.requireFileExists=false
project.ssh-authentication=password
ssh-password-storage-path=/var/lib/tomcat8/rbase/projects/EXPLOITATION/etc/rundeck.password
service.NodeExecutor.default.provider=jsch-ssh
resources.source.1.config.includeServerNode=true
resources.source.1.config.generateFileAutomatically=true
resources.source.1.config.format=resourcexml
resources.source.1.config.file=/var/lib/tomcat8/rbase/projects/EXPLOITATION/etc/resources.xml
project.nodeCache.enabled=true
project.nodeCache.delay=30
project.description=Toute l'exploitation de mon SI
service.FileCopier.default.provider=jsch-scp
resources.source.1.type=file

my resources.xml file


<?xml version="1.0" encoding="UTF-8"?>

<project>
  <node name="SERVER" description="Rundeck server node" tags="" hostname="localhost" osArch="amd64" osFamily="unix" osName="Linux" osVersion="4.4.0-53-generic" username="tomcat8"/>
    <node name="SERVER1" description="Serveur 1" tags="" hostname="192.168.1.1" osArch="amd64" osFamily="unix" osName="Linux" osVersion="4.4.0-53-generic" username="rundeck"/>
</project>



and /var/lib/tomcat8/rbase/projects/EXPLOITATION/etc/rundeck.password

password


I can connect from SERVER to SERVER1 by SSH (login rundeck, password password), but when I try to run commands on distant nodes, I see this message

Failed: ConfigurationFailure: SSH Password was not set

So, what is wrong with my config ?

Thanks in advance
Regards

Olivier

Alex Honor

unread,
Jan 18, 2017, 6:58:20 PM1/18/17
to rundeck...@googlegroups.com
Take a look at this section: http://rundeck.org/docs/plugins-user-guide/ssh-plugins.html#ssh-password-authentication.

Make sure you have  ssh-authentication="password"


--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/1b090d3b-818e-4849-84e8-d1c26903bb8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Alex Honor

[SimplifyOps, Inc | a...@simplifyops.com ]

Be sure to comment and vote on Rundeck Feature Development!

Olivier GRUEL

unread,
Jan 19, 2017, 7:51:12 AM1/19/17
to rundeck-discuss
Thanks Alex

I've made a lot of error with the configuration of my project.
I want the same user rundeck for all nodes in my project Exploitation

so I've changed


project.ssh-authentication=password
project.ssh-password-storage-path=keys/rundeck.password
project.ssh.user=rundeck


in project.properties
and in resources.xml

<node name="SERVER1" description="Serveur 1" tags="" hostname="192.168.1.15" osArch="amd64" osFamily="unix" osName="Linux" osVersion="4.4.0-53-generic" authentification="password"/>


and I stil have this message "Path does not exist: keys/rundeck.password"
But where 's the keys directory ?

Under rbase? under project's directory ?

Thanks in advance
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.

Alex Honor

unread,
Jan 19, 2017, 10:32:07 AM1/19/17
to rundeck...@googlegroups.com
Hi Olivier,

Add that key to the Rundeck Key Store. Go to the Configuration page inside the app (under the gear icon). You can find technical docs here: http://rundeck.org/docs/administration/key-storage.html. You can also use the rd cli tool to upload a key via command line https://rundeck.github.io/rundeck-cli/.

Thanks



Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/53067ab3-fc01-4cc0-afcf-370eb3795feb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Olivier GRUEL

unread,
Jan 19, 2017, 10:53:59 AM1/19/17
to rundeck-discuss
Alex

I've uploaded password via the Key Storage Menu, and it's works!!!

but where is it ? store in database ?

Olivier

Alex Honor

unread,
Jan 19, 2017, 11:24:07 AM1/19/17
to rundeck...@googlegroups.com
Olivier,

Take a look at the docs but by default it is written to the file system but configurable for DB.

To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/4e574244-bb2d-45da-890a-b09bb3909d9c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages