linux公钥和私钥生成

1. 路径

cd /root/.ssh

2. 输入命令

ssh-keygen -t rsa  按三次回车

3. 会依次生成  id_rsa 私钥和 id_rsa.pub 公钥

[root@insure .ssh]# ls
authorized_keys id_rsa id_rsa.pub

4. 复制公钥追加到另外一台服务器的/root/.ssh/authorized_keys内

猜你喜欢

转载自www.cnblogs.com/mutong1228/p/10453707.html