Categories
GNU/Linux

GNU/Linux OpenSSH Key QuickRef

Generate a SSH Key Pair:

>ssh-keygen -t rsa

Convert SSH2 Public Key to OpenSSH Public Key

>ssh-keygen -i -f id_ssh2.pub > id_openssh.pub

Convert OpenSSH Public Key to SSH2 Public Key

>ssh-keygen -e -f id_openssh.pub > id_ssh2.pub

Get Key Fingerprint MD5

ssh-keyscan -p [port] [hostname] > [hostkeyfpfile]
ssh-keygen -l -f [hostkeyfpfile] -E md5