Authentication failed

I got this error after installing the slave node, someone please help ~ I can ssh on the slave node without any problems, this only happens on jenkins.

[11/20/14 21:01:30] [SSH] Opening SSH connection to 10.105.5.34:22.
[11/20/14 21:01:30] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
    at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1178)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:701)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
[11/20/14 21:01:30] Launch failed - cleaning up connection
[11/20/14 21:01:30] [SSH] Connection closed.

jenkins version - latest version 1.59, ssh plugin is also the latest

+4
source share
1 answer

Try ssh for the host using the following command:

ssh -v -i ~ / .ssh / id_rsa remoteuser @server

where id_rsa (or dsa) is your key. Try it out well, because it's probably where your problem is. On the server, view the auth.log file. You should be able to see errors in the case of:

  • Home permissions / ownership is out of order
  • .ssh permissions / ownership is out of order
  • /

, home .ssh. , sshd_config SSH. - :

chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

0

All Articles