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 <[email protected]> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/8f5173b3-0431-402d-97fa-a9a147ceedc7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/8f5173b3-0431-402d-97fa-a9a147ceedc7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMxSuRDOiXWzLxQw1vFXnFW1xhP2PDaCy6GDn-1XjhR7-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to