CH-J Toolsserver management over SSH
Menu
All SSH key examples →

Example 09 · Ed25519

Ed25519 key: short, fast and the usual recommendation for new SSH keys since OpenSSH 6.5 (2014).

Key overview

Key typeEd25519
SSH algorithm namessh-ed25519
SupportOpenSSH 6.5 and newer, PuTTY 0.68 and newer
Private key formatOpenSSH (openssh-key-v1), unencrypted
FingerprintSHA256:OkqKmqArU8SoYzSvX7KIZ1F8XdO/FSxFspCrbszALjE

Public key

The public key in authorized_keys format. Add it to an allowed_signers file to verify the signature below.

Download → 100 bytes

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmetTaaVky+uz6bUkYSJzwGR1wgt/VQMjlICCgamj6t ch-j-ssh-example-09

Private key

The unencrypted private key. Published for testing only: anyone can use it.

Download → 411 bytes

Show
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDJnrU2mlZMvrs+m1JGEic8BkdcILf1UDI5SAgoGpo+rQAAAJgLq57qC6ue
6gAAAAtzc2gtZWQyNTUxOQAAACDJnrU2mlZMvrs+m1JGEic8BkdcILf1UDI5SAgoGpo+rQ
AAAEAy7rRXiKnA6Xh33J1ICvbhDYkU5H4+A2X8gY/pGQ7sC8metTaaVky+uz6bUkYSJzwG
R1wgt/VQMjlICCgamj6tAAAAE2NoLWotc3NoLWV4YW1wbGUtMDkBAg==
-----END OPENSSH PRIVATE KEY-----

Signature of test_1MB.bin

Detached SSH signature (SSHSIG, namespace "file") of test_1MB.bin made with this key in CH-J Tools. Save it as test_1MB.bin.sig next to the test file.

Download → 294 bytes

-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgyZ61NppWTL67PptSRhInPAZHXC
C39VAyOUgIKBqaPq0AAAAEZmlsZQAAAAAAAAAGc2hhNTEyAAAAUwAAAAtzc2gtZWQyNTUx
OQAAAECBgH1bl20qENWvIdRVIMwCEc8eFMYtwHhH6mp9bK1nQKgjICKW5Hf/526FbN4WGF
K5uggO6We0gAVRMppZzjYI
-----END SSH SIGNATURE-----

Revocation

SSH keys have no revocation certificate. To withdraw a key, remove it from authorized_keys, or list it in an OpenSSH key revocation list (KRL, created with ssh-keygen -k) that the server reads through RevokedKeys.

Verify the signature

Save the public key and the signature next to test_1MB.bin, create an allowed_signers file and run ssh-keygen:

echo "example@ch-j $(cat id_ed25519.pub)" > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I example@ch-j -n file -s test_1MB.bin.sig < test_1MB.bin