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 小时前
Windows系统工具:WinToolsPlus 之 SQL Server Suspect/质疑/置疑/可疑/单用户等 修复
运维
惊起白鸽4502 小时前
LVS负载均衡
运维·负载均衡·lvs
伤不起bb3 小时前
NoSQL 之 Redis 配置与优化
linux·运维·数据库·redis·nosql
广东数字化转型4 小时前
nginx怎么使用nginx-rtmp-module模块实现直播间功能
linux·运维·nginx
love530love4 小时前
【笔记】在 MSYS2(MINGW64)中正确安装 Rust
运维·开发语言·人工智能·windows·笔记·python·rust
啵啵学习4 小时前
Linux 里 su 和 sudo 命令这两个有什么不一样?
linux·运维·服务器·单片机·ubuntu·centos·嵌入式
数字芯片实验室5 小时前
寄存器模型生成:从手工到自动化
运维·自动化
冰橙子id6 小时前
linux——磁盘和文件系统管理
linux·运维·服务器
咕噜企业签名分发-淼淼6 小时前
应用app的服务器如何增加高并发
运维·服务器
b***25116 小时前
18650锂电池组点焊机:高效组装锂电池的关键工具|比斯特自动化
运维·自动化