1. 路径
cd /root/.ssh
2. 输入命令
ssh-keygen -t rsa 按三次回车
3. 会依次生成 id_rsa 私钥和 id_rsa.pub 公钥
[root@insure .ssh]# lsauthorized_keys id_rsa id_rsa.pub
4. 复制公钥追加到另外一台服务器的/root/.ssh/authorized_keys内
Powered by: 博客园 Copyright © 2024 愤怒中的小草 Powered by .NET 9.0 on Kubernetes