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

問題:jenkins配置ssh遠程鏈接時候報前端

ERROR: Failed to authenticate with public keyssh

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

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

緣由分析:blog

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

配置步驟:rem

1. private key必須包含----begin和----end----,不然死活報Can't connect to serverjenkins

2.系統設置裏面添加ssh remoteit

.io

相關文章
相關標籤/搜索