查看: 51|回复: 0

Jenkins+Gitee异常解决

[复制链接]

4

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2010-7-2
发表于 2019-12-21 13:29:00 | 显示全部楼层 |阅读模式

Failed to connect to repository : Command "git ls-remote -h username@mygit.com:cc/myproject.git HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: The remote end hung up unexpectedly

 

[root@localhost ~]# more /etc/passwd
jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/false

[root@localhost ~]# vi /etc/passwd
jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/bash


jenkins用户密钥的生成

[root@localhost ~]# 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部