Jenkins从属节点处于脱机状态:身份验证失败

时间:2017-02-23 14:37:38

标签: jenkins ssh

我有一个使用用户/密码ssh身份验证的节点。该节点被报告为脱机,当我尝试启动代理时,我得到:

[02/23/17 15:32:00] [SSH] Opening SSH connection to myUrl:22.
ERROR: Failed to authenticate as myUser. Wrong password. (credentialId:lawrence/method:keyboard-interactive)
[02/23/17 15:32:02] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
    at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1217)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[02/23/17 15:32:02] Launch failed - cleaning up connection
[02/23/17 15:32:02] [SSH] Connection closed.

我已确认用户名和密码是正确的,因为我设法自己手动登录。

导致此错误的原因是什么?

2 个答案:

答案 0 :(得分:1)

根本原因是jenkins用户无法读取SSH私钥。 您应该直接输入私钥。 enter image description here

答案 1 :(得分:0)

尝试执行

,而不是登录
ssh slave command

我怀疑您的登录资料是罪魁祸首。看看this