生成公钥

ssh-keygen -t rsa -C "[email protected]"

查看

ls -al ~/.ssh

查看 id_rsa.pub

cat /root/.ssh/id_rsa.pub