himitsu-ssh(5)
π
himitsu-ssh(5): the SSH key format tea, explained by your Unix bestie π
π NAME π
himitsu-ssh β the format of SSH keys used by himitsu-ssh(7), bestie.
β¨ DESCRIPTION β¨
Okay so this page is literally all about the format of SSH keys stored in the Himitsu key store by himitsu-ssh. Thatβs the whole assignment. If you want the actual βhow do I use himitsu-sshβ details, go read himitsu-ssh(7) instead, no cap.
π KEY FORMAT π
The Himitsu keys used by himitsu-ssh use proto=ssh and define other fields that may vary depending on the type of key in use. The keys common to each key type are:
protoβssh. Thatβs it. Thatβs the value.typeβ the key algorithm, using the standard SSH name.comment?β an arbitrary user-provided comment.
The type field defines the other parameters that are present. And key materials are stored directly in their "raw" form, rather than wrapped in the SSH standard key format. Slay, honestly.
π§ ssh-ed25519 π§
ssh-ed25519 keys add the following fields:
typeβssh-ed25519pkeyβ the ed25519 public key,base64encodedskey!β the ed25519 secret key,base64encoded
πΈ ssh-rsa πΈ
RSA integers are stored as a sequence of multi precision unsigned integers. Such an integer starts with the length as an big-endian 32bit word. Followed by the denoted number of bytes, also in big-endian. The highest value bit of the first byte has to be 0, thus the integer may be left-padded with a single zero value.
typeβssh-rsapkeyβ the rsa public key,base64encoded. The key consists of the modulusnand the public exponente.skey!β the rsa secret key,base64encoded. The secret key consists of the private exponentd, the coefficientiq, and the prime factorspandq.
π¦ ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521 π¦
typeβecdsa-sha2-nistp256,ecdsa-sha2-nistp384orecdsa-sha2-nistp521pkeyβ the ec public key,base64encoded. The key is stored in theumcompressedformat defined inRFC 8422. The first byte is0x04, followed by the curve points in big-endian format, each taking half of the remaining space. They may be left padded with0. Forp256they each take32bytes. Forp384they take48bytes and forp521they take66bytes each.skey!β the ed25519 secret key is a scalar value as byte array in big-endian format,base64encoded.
bestie, yes, that last one says ed25519 inside the ECDSA section. Iβm just relaying the page exactly, donβt come for me π
π SEE ALSO π
β with love, from the File Formats Manual, page himitsu-ssh(5), dated 2026-03-23 π«Ά
π¦ where this page comes from
- alpine 3.24: himitsu-ssh-doc 0.10.0-r0 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms