4 ms·
Yes: ssh-keygen -y -f private_key.pem > public_key.pub
by gbaygon 13y ago
Yes:
ssh-keygen -y -f private_key.pem > public_key.pub
- emmelaich 13y agoYes and no. It extracts the public key from the private key file. The "private" key file includes both keys. The public key file doesn't.
- dlitz 13y ago> The "private" key file includes both keys. It wouldn't need to, though. Given the private key (n,d), the public key is probably (n,65537).