簡體   English   中英

Jenkins從節點離線:認證失敗

[英]Jenkins slave node is offline: Authentication failed

我有一個使用用戶/密碼 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.

我已經確認用戶名和密碼是正確的,因為我設法自己手動登錄。

導致此錯誤的原因可能是什么?

根本原因是 jenkins 用戶無法讀取 SSH 私鑰。 您應該直接輸入私鑰。 在此處輸入圖片說明

而不是登錄,嘗試做一個

ssh slave command

我懷疑您的登錄配置文件是罪魁禍首。 看看這個

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM