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地址
相关推荐
libraG18 小时前
Jenkins打包问题
前端·npm·jenkins
JuiceFS18 小时前
从 MLPerf Storage v2.0 看 AI 训练中的存储性能与扩展能力
运维·后端
chen9451 天前
mysql 3节点mgr集群部署
运维·后端
LH_R1 天前
OneTerm开源堡垒机实战(三):功能扩展与效率提升
运维·后端·安全
dessler1 天前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
少妇的美梦2 天前
logstash教程
运维
chen9452 天前
k8s集群部署vector日志采集器
运维
chen9452 天前
aws ec2部署harbor,使用s3存储
运维
東雪蓮☆2 天前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_264220892 天前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs