↧
Regenerating an SSH Host Key
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
View ArticleConverting SSH Key Formats
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...
View ArticleGenerate an SSH Public Key from a Private Key
Use ssh-keygen: ssh-keygen -y -f key.pem > key.pub
View Article