“RFC4716”(RFC4716/SSH2publicorprivatekey)
“PKCS8”(PEMPKCS8publickey)
ubuntu:
ssh-keygen-e-f~/.ssh/id_rsa.pub>~/.ssh/id_rsa_pub.pem
ssh-keygen-f~/.ssh/id_rsa_pub.pem -i -mRFC4716>~/.ssh/id_rsa.pub
windows:
1)UsetheputtyGen
2)Runputtygenandclickgenerate
3)Runyourmouseroundtheblankpartforawhile.
4)Enterakeyphrase(andrepeat)
5)Clicksavepublickeyandsaveit<path>\publickey
6)Clicksaveprivatekeyandsaveit<path>\privatekey(extensiongetsaddedautomatically,thisisnogoodforspoon,butgoodforputty)
7)ClickConversions->ExportOpenSSHkeyandsaveas<path>\sshkey.pem
8)InthemainwindowisyoukeyforpastingintoOpenSSHauthorized_keysfile.Copythisinitsentiretyandpastitintoyourubuntumachinein/home/<user>/.ssh/authorized_keysfile.
9)Ok,youcancloseputtykeygenerator.
10)Utilizethe.peminthetool.
转自太极客