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

.

猜你喜欢

转载自www.cnblogs.com/jiangds/p/10843724.html