ssh4—linux用户之间登录
文章目录
实验环境
Linux系统:redhat8.2
两台处于同一局域网下的 Redhat主机。
实验要求
A主机能通过ssh免密登录 B主机
发挥部分
B主机能通过ssh免密登录 A主机
A主机通过ssh免密登录A主机自己
一、创建数字证书
1、生成公钥与私钥
ssh-keygen -t rsa
[root@redhat_1 /]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):