Jenkins+Gitee異常解決


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM