Jenkins提示Host key verification failed的解决办法

jenkins用户生成密钥对
bash 复制代码
# 给jenkins用户生成密钥对
jenkins@Arvin627 :/$ ssh-keygen -t rsa
# 直接回车确定
jenkins@Arvin627 :/$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@服务器ip地址
 
# 验证
jenkins@Arvin627 :/$ ssh root@服务器ip地址

root用户生成密钥对

bash 复制代码
# 给root用户生成密钥对
[root@Arvin627 ~]# ssh-keygen 
# 直接回车确定
[root@Arvin627 ~]# ssh-copy-id -i ~/.ssh/id_rsa.pub root@服务器ip地址
 
# 验证
[root@Arvin627 ~]# ssh root@服务器ip地址
相关推荐
楼田莉子20 小时前
Linux学习:进程的控制
linux·运维·服务器·c语言·后端·学习
捷智算云服务20 小时前
H100服务器维修“病历卡”:五大常见故障现象与根源分析
运维·服务器
wzlsunice8821 小时前
用vir-manager创建kvm虚拟机(创建网桥和配置网络等)
运维·网络
南方以南_21 小时前
CKA07--Argo CD
运维·kubernetes·k8s
洋芋土豆21 小时前
linux用户及权限管理
linux·运维·服务器
塔能物联运维1 天前
物联网运维中的自适应DNS解析优化与动态负载均衡技术
运维·物联网·负载均衡
wheeldown1 天前
【Linux】Linux内存管理与线程控制核心解析
linux·运维·服务器
努力努力再努力wz1 天前
【Linux进阶系列】:线程(下)
linux·运维·服务器·c语言·数据结构·c++·算法
KV_T1 天前
centos运维常用命令
linux·运维·centos
todoitbo1 天前
使用n8n搭建服务器监控系统:从Webhook到Telegram告警的完整实现
运维·服务器·数据库·ai·向量数据库·流处理·n8n