2017-09-29 220 views
0

自從我對此問題進行故障排除已經過去四天,但根本沒有收穫。無法通過SSH啓動jenkins代理

我已經設置了一個Jenkins Master(用戶:jenkins)和一個Jenkins slave(用戶:jenkinslave)。

建立它們之間的SSH連接,我能夠從主機到從機進行SSH連接。 我配置了從屬節點,給了遠程根目錄(/ var/lib/jenkinslave),並使用「啓動使用SSH的奴隸」方法啓動它。但奴隸離線,我嘗試了所有的主機驗證策略, m仍然

[SSH]身份驗證失敗。

我能夠建立SSH連接,但驗證失敗。我提供了jenkinslave憑據,他們是正確的。

手動信任的關鍵策略:

[09/29/17 16:51:17] [SSH] Opening SSH connection to ip-10-0-2-218.ap-south-1.compute.internal:22. 
[09/29/17 16:51:17] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed. 
[09/29/17 16:51:17] [SSH] Authentication failed. 
Authentication failed. 
[09/29/17 16:51:17] Launch failed - cleaning up connection 
[09/29/17 16:51:17] [SSH] Connection closed 

主機關鍵策略:

[09/29/17 16:53:40] [SSH] Opening SSH connection to ip-10-0-2-218.ap-south-1.compute.internal:22. 
[09/29/17 16:53:41] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed. 
[09/29/17 16:53:41] [SSH] Authentication failed. 
Authentication failed. 
[09/29/17 16:53:41] Launch failed - cleaning up connection 
[09/29/17 16:53:41] [SSH] Connection closed. 

我讀過,他們建議使用手動按鍵的幾篇文章中,我在上面做了,還是認證失敗。 有人可以請解釋我錯過了什麼嗎?我無法找到問題。

回答