ssh-keygen 根据私钥生成公钥

ssh-keygen -y -f <path/to/private_key> > <path/to/public_key>

-y Read private key file and print public key

-y 的意思是读取私钥并将公钥打印出来

https://aniyara.icu/api.php?t=edad165fe1f3304599c645cddcc20be4d65caf19