从 ssh private key 中重新生成 public key

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.

posted @ 2019-10-31 15:43  Pekkle  阅读(1451)  评论(0编辑  收藏  举报