gitlab ssh key无法连接

发布时间 2023-04-26 13:05:31作者: 滴滴滴
to solve above issue just change "Host Key Verification Strategy" to "Accept first connection" Dashboard > Manage Jenkins > Configure Global Security > 
Git Host Key Verification Configuration. Then in Host Key Verification Strategy select Accept first connection.


I had the same problem in a php project. I ran ssh-keygen -R "gitlab.com" and it worked

 

jenkins 无法连接gitlab 通过ssh-key原因是不认识主机名在known_hosts,需要在 dash-board--->系统管理-->全局安全配置中--->

Host Key Verification Strategy--->选择
Accept first connection