ssh-keygen 根据私钥生成公钥

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

-y Read private key file and print public key

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