gitee和jenkins_Jenkins+Gitee异常解决

Failed to connect to repository : Command "git ls-remote -h [email protected]:cc/myproject.git HEAD" returned status code 128:

stdout:

stderr: Host key verification failed.

fatal: The remote end hung up unexpectedly

[[email protected] ~]# more /etc/passwd

jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/false

[[email protected] ~]# vi /etc/passwd

jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/bash

jenkins用户密钥的生成

[[email protected] ~]# su - jenkins

-bash-4.2$ ssh-keygen -t rsa

Your public key has been saved in /var/lib/jenkins/.ssh/id_rsa.pub

-bash-4.2$ more /var/lib/jenkins/.ssh/id_rsa.pub

把内容拷贝到gitee

参考资料:

Jenkins 插件

https://gitee.com/help/articles/4193

Jenkins执行git命令报错:Host key verification failed.

https://majing.io/posts/10000007031172

解决无法切换到jenkins用户的问题

https://blog.csdn.net/csfreebird/article/details/27968019

原文:https://www.cnblogs.com/coffee_cn/p/12076679.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值