In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces what the public key format of ssh-keygen is like, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
Ssh-keygen public key format
Public key: there are two public key formats, standard format and one-line format
Standard format: this format is required by some ssh servers. Click to save the public key directly, and the saved format is the standard format.
-- BEGIN SSH2 PUBLIC KEY--
Comment: "rsa-key-20101208"
AAAAB3NzaC1yc2EAAAABJQAAAIB4LzyTTbPr3tY9ecJTzAyQlecO8qktGBKqy5m9
Lt4Af5ZQ+zxWOVIG0q2KBRtrL0KXPtge9QDPl7/ZtUdQTt0TKKg8fpoEzW8Jc6vq
SBsfCvDPxv+0vEsrLCJP58IxEh76gTpnJOjoCa+NfZJte/drsE4EwcvOmNeBrbhY
L7Z3UQQ =
-- END SSH2 PUBLIC KEY--
One-line format
This format is required for Openssh servers. Copy the public key into the authorized_keys file. The format in which the public key generated by PuTTYgen is copied and pasted into the SSH server is the one-line format.
For example, ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAwtUKdm+wzgBIJPazvE3v2DXrFSMiOxv/ch+hR7aqq2pw7Hk6+r7Mpsic4+22ZNC91HjqlBEfsoQ+/rz + e8qcJM17s8SNeumysWOBxFY913SXG5gDpyWMwQhISCPflcudPjImz5ytRYQZroomYtW4QHz54h6Clw18x9qidOQfPESuFc = rsa-key-20101208
After all of the above, the crux of the problem boils down to the conversion of several formats:
1. IETF SECSH-> OpenSSH
Use OpenSSH's ssh-keygen: $ssh-keygen-I-f privatekey > newprivatekey
2. OpenSSH-- > IETF SECSH
Use OpenSSH's ssh-keygen: $ssh-keygen-e-f privatekey > newprivatekey
Use ssh3's ssh-keygen2: $ssh-keygen-x privatekey
3. Conversion of PuTTY format:
Use puttygen.exe
3.1 other two formats-> PuTTY format
In addition to Load private keys in its own format (.ppk), private keys in other formats can be directly Load, and can be automatically identified and converted into keys in PuTTY format, such as OpenSSH private keys.
3.2 you can also use PuTTY format-> the other two formats
About what the public key format of ssh-keygen is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.