Use the -y option to ssh-keygen:
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
From the ‘man ssh-keygen‘
-y This option will read a private OpenSSH format file and print an OpenSSH public key to stdout.
原文地址:https://www.cnblogs.com/pekkle/p/11771598.html
时间: 2024-11-07 00:57:19