ssh-keygen を使用して、秘密鍵から公開鍵を生成する
#SSH
#公開鍵認証
code:shell
$ ssh-keygen -f ~/.ssh/id_ed25519 -y > ~/.ssh/id_ed25519.pub
-y
code:man ssh-keygen
-y This option will read a private OpenSSH format file and print an
OpenSSH public key to stdout.