2017-02-23 20 views
1

我有一个使用用户名/密码ssh身份验证的节点。该节点被报告为脱机,当我尝试启动代理我得到:Jenkins从属节点处于脱机状态:身份验证失败

[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. 

我已经证实,用户名和密码都为我管理手动与他们登录自己是正确的。

这个错误的原因是什么?

回答

0

而是登录的,尝试做一个

ssh slave command 

我怀疑你的登录配置文件的罪魁祸首。看看this

1

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

+0

你是我的英雄! – SegFault