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地址
相关推荐
麻芝汤圆1 小时前
Linux操作系统的计算机体系结构与网络安全的深度关联
大数据·linux·运维·服务器·网络·安全·web安全
FixBug_Nick2 小时前
Jenkins配置的JDK,Maven和Git
java·git·jdk·jenkins·maven
小小鸭程序员2 小时前
零基础教程:Windows电脑安装Linux系统(双系统/虚拟机)全攻略
linux·运维·服务器·mysql·spring
会飞的土拨鼠呀2 小时前
开源酷炫的Linux监控工具:sampler
linux·运维·开源
GalaxyPokemon3 小时前
MySQL基础 [六] - 内置函数+复合查询+表的内连和外连
linux·运维·数据库·mysql·ubuntu
Linux运维老纪4 小时前
Linux 命令清单(Linux Command List)
linux·运维·服务器·数据库·mysql·云计算·运维开发
原来454 小时前
Docker Compose 常用命令 && 运行 docker-compose.yaml
运维·docker·容器
参.商.4 小时前
【RH124】第六章 管理本地用户和组
linux·运维
Android小码家5 小时前
Docker与VNC的使用
运维·docker·容器
Kaede66 小时前
如何删除Debian中的用户?删除Debian用户方法
运维·debian