Jenkins You‘re using ‘Known hosts file‘,known_hosts file does not exist

Jenkins环境构建时产生报错:

using GIT_SSH to set credentials ssh

Verifying host key using known hosts file

You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification.

.> git fetch --tags --force --progress -- git@codeup.aliyun.com:667e204e71a0b/xjd/learning.git +refs/heads/:refs/remotes/origin/ # timeout=10

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from git@codeup.aliyun.com:667e204e2f23b7ceb8971a0b/xjd/learning_teacher.git

解决:参考这篇文章可排查问题

https://blog.csdn.net/admin_233/article/details/143422549

相关推荐
代码游侠3 小时前
ARM开发——阶段问题综述(二)
运维·arm开发·笔记·单片机·嵌入式硬件·学习
Mr.朱鹏5 小时前
Nginx路由转发案例实战
java·运维·spring boot·nginx·spring·intellij-idea·jetty
java_logo5 小时前
OpenCode 企业级 Docker 部署完整指南
运维·docker·容器·opencode·opencode本地化部署·opencode部署手册·opencode部署方案
TTBIGDATA6 小时前
【knox】User: knox is not allowed to impersonate admin
大数据·运维·ambari·hdp·trino·knox·bigtop
佑白雪乐7 小时前
<Linux基础第10集>复习前面内容
linux·运维·服务器
春日见7 小时前
自动驾驶规划控制决策知识点扫盲
linux·运维·服务器·人工智能·机器学习·自动驾驶
玉树临风江流儿7 小时前
docker镜像加速器配置步骤
运维·docker·容器
China_Yanhy8 小时前
我的区块链运维日记 · 第 11 日:生死时速 —— 闪电贷攻击与“红色按钮”
运维·区块链
2401_840192278 小时前
怎么把运维能力沉淀下来?
运维