Skip to content

Tag Archives: ssh-keygen

Generate an SSH Public Key from a Private Key

07-Dec-11

Use ssh-keygen:

Converting SSH Key Formats

25-Jan-11

To convert an SSH key from SSH2-compatible format to OpenSSH-compatible, use the “-i” flag to “ssh-keygen”: -i This option will read an unencrypted private (or public) key file in SSH2-compatible format and print an OpenSSH compatible private (or public) key to stdout. ssh-keygen also reads the RFC 4716 SSH Public Key File Format. This option [...]

Regenerating an SSH Host Key

26-Feb-10

Use ssh-keygen, just like you would with an account’s key pair: # ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N ” -t rsa # ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N ” -t dsa