Using two CentOS 7 servers, I set up passwordless authentication with root users. I tried to use 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 (non-root) 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/dab0e373-fe11-47b0-9257-2fc3269683d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
