jenkins 配置ssh remotes 報Failed to authenticate with public key


問題:jenkins配置ssh遠程連接時候報

ERROR: Failed to authenticate with public key

com.jcraft.jsch.JSchException: invalid privatekey: [B@5c313ae5

jenkins前端提示:Can't connect to server

原因分析:

  1. 本地機器秘鑰生成不對
  2. 必須將本地私鑰完整內容拷貝,包括----字符(可能是個bug)
  3. 生成秘鑰時候的密碼錯誤

配置步驟:

1. private key必須包含----begin和----end----,否則死活報Can't connect to server

2.系統設置里面添加ssh remote

.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM