Jenkins+Gitee异常解决
<p>Failed to connect to repository : Command "git ls-remote -h username@mygit.com:cc/myproject.git HEAD" returned status code 128:<br>stdout:<br>stderr: Host key verification failed.<br>fatal: The remote end hung up unexpectedly</p><p> </p>
<p># more /etc/passwd<br><strong>jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/<span style="color: rgba(255, 0, 0, 1)">false</span></strong></p>
<p># vi /etc/passwd<br><strong>jenkins:x:989:984:Jenkins Automation Server:/var/lib/jenkins:/bin/<span style="color: rgba(255, 0, 0, 1)">bash</span></strong></p>
<p><br>jenkins用户密钥的生成</p>
<p># su - jenkins</p>
<p>-bash-4.2$ ssh-keygen -t rsa<br>Your public key has been saved in /var/lib/jenkins/.ssh/id_rsa.pub</p>
<p>-bash-4.2$ more /var/lib/jenkins/.ssh/id_rsa.pub<br>把内容拷贝到gitee</p>
<p> </p>
<p> </p>
<p><strong>参考资料:</strong></p>
<p>Jenkins 插件<br>https://gitee.com/help/articles/4193</p>
<p>Jenkins执行git命令报错:Host key verification failed.<br>https://majing.io/posts/10000007031172</p>
<p>解决无法切换到jenkins用户的问题<br>https://blog.csdn.net/csfreebird/article/details/27968019</p><br><br>
来源:https://www.cnblogs.com/coffee_cn/p/12076679.html
頁:
[1]