Re: Is it necessary to have passwordless authentication with the jenkins user to other servers?

24 views
Skip to first unread message

Stephen Connolly

unread,
Jan 30, 2016, 9:30:32 AM1/30/16
to jenkins...@googlegroups.com
Give Jenkins the SSH key by creating a Credentials in Jenkins that provides the key it is supposed to use.

On 30 January 2016 at 10:52, Kiran <catrina...@gmail.com> wrote:
Using two CentOS 7 servers, I set up passwordless authentication with root users.  I used the same method (with .pub and authorized_key files) with other local users.  But these methods didn't work.  SSH connections between the servers with these users still prompted for a password.

I started with this:  ssh-keygen -t rsa

What can I do to get Jenkins to work?  One of my two CentOS 7 servers has Jenkins installed. I want to do builds (file transfers at the least) with other CentOS 7 servers.  I think I need passwordless authentication for the jenkins user.  I tried appending the contents of the .pub files in /root/.ssh/authorized_keys.  I tried appending the contents of the .pub files in /home/jdoe/.ssh/authorized_keys.  Instead of authorized_keys I also tried authorized_keys2.  I expect passwordless authentication to work the same way with root as other users (as long as I don't enter a password when I generate the SSH key).  But this isn't what I am experiencing. What should I do?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f5173b3-0431-402d-97fa-a9a147ceedc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages