将私钥保存到任意位置,进入到保存位置目录下
chmod 600 test_ld2.pem
ssh-****** -y -f test_ld2.pem > test_ld2.pem.pub

完成后使用vi命令来查看一下提取出的公钥,然后:wq保存并退出编辑:
从私钥中提取公钥

相关文章: