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

相关推荐
不愿透露姓名的大鹏10 分钟前
MySQL Binlog配置优化全攻略
运维·服务器·数据库·mysql·adb
●VON15 分钟前
本地大模型部署实录:从Docker环境搭建到Open WebUI公网访问
运维·docker·容器·大模型
IMPYLH22 分钟前
Linux 的 mkdir 命令
linux·运维·服务器·bash
网络研究员29 分钟前
Facebook无法向他人发送消息?2026原因解析与解决思路
运维·服务器
电子阿板30 分钟前
ubuntu虚拟机查看tusb8041扩展坞及U盘的设置方法
linux·运维·ubuntu
迷路爸爸18032 分钟前
Docker 入门学习笔记 07:用一个多服务案例真正理解 Docker Compose
运维·笔记·学习·spring cloud·docker·容器·eureka
孤影过客33 分钟前
Linux下的PostgreSQL集群演进指南
linux·运维·postgresql
Arvin62737 分钟前
Jenkins 任务执行完成后会kill掉的衍生进程
运维·servlet·jenkins
雄哥0071 小时前
linux redis升级⼿册-源码部署版
linux·运维·redis
水云桐程序员1 小时前
电子自动化技术(EDA技术)FPGA概述
运维·fpga开发·自动化