> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/crypto/tools/ssh-keygen.md).

# ssh-keygen

**ssh-keygen** generates, manages and converts authentication keys for ssh. ssh-keygen can create keys for use by SSH protocol version 2.

The type of key to be generated is specified with the -t option. If invoked without any arguments, ssh-keygen will generate an Ed25519 key.

ssh-keygen is also used to generate groups for use in Diffie-Hellman group exchange (DH-GEX).

Finally, ssh-keygen can be used to generate and update Key Revocation Lists, and to test whether given keys have been revoked by one.

## Resources

ssh-keygen - Linux manual page: <https://man7.org/linux/man-pages/man1/ssh-keygen.1.html>
