jenkins 配置ssh remotes 报Failed to authenticate with public key
2020-01-15 10:42
2101 查看
问题:jenkins配置ssh远程连接时候报
ERROR: Failed to authenticate with public key
com.jcraft.jsch.JSchException: invalid privatekey: [B@5c313ae5
jenkins前端提示:Can't connect to server
原因分析:
- 本地机器秘钥生成不对
- 必须将本地私钥完整内容拷贝,包括----字符(可能是个bug)
- 生成秘钥时候的密码错误
配置步骤:
1. private key必须包含----begin和----end----,否则死活报Can't connect to server
2.系统设置里面添加ssh remote
.
转载于:https://www.cnblogs.com/jiangds/p/10843724.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
- Failed to instantiate * using constructor public * with arguments **
- Jenkins slave节点配置(SSH with private key)
- jenkins配置邮件 -- com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender
- MongoVUE连接MongoDB,日志报错: “Failed to authenticate root@admin with mechanism MONGODB-CR: Authenticatio
- 三星笔记本安装系统时报错:image failed to verify with * access denied* press any key to continue.
- Failed to authenticate ceilometer@ceilometer with mechanism MONGODB-CR: AuthenticationFailed
- eclipse配置Android或OPhone提示Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.
- How to use WinSCP with public key authentication
- Xcode报错: linker command failed with exit code 1 (use -v to see invocation)
- Executing root.sh errors with "Failed To Upgrade Oracle Cluster Registry Configuration" [ID 466673.1]
- [Bug-IOS] - linker command failed with exit code 1 (use -v to see invocation)
- Failed to open the host key database file
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Android打包时出现"Conversion to Dalvik format failed with error 1"
- Installation failed with message Failed to finalize session
- linker command failed with exit code 1 (use -v to see invocation)报错汇总
- Uncaught exception com_exception with message Failed to create COM object
- 配置nginx.config 报错:connect() failed (111: Connection refused) while connecting to upstream解决
- 添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试