Derive the public key from a private SSH key
get public key from private key ssh | recreate missing id_ed25519.pub | ssh-keygen -y | ssh-keygen | ssh-keys | public-keyssh-keygen -y -f ~/.ssh/id_ed25519_serverReads the private key and prints the matching public key to standard output. For protected keys, the passphrase is requested. The output can be added directly to an authorized_keys file or redirected into a .pub file with >.
Note: The comment at the end is missing from the output, it only exists in the original .pub file.
Also searched as
- get public key from private key ssh
- recreate missing id_ed25519.pub
- ssh-keygen -y