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