Friday, 30 January 2026

Using ssh-keygen from WSL to generate an SSH key

SSH keys are useful to enable access to networked resources.  

The command ssh-keygen (the OpenSSH authentication key utilit) can be used to generate keys.

Example usage:  ssh-keygen -t ed25519 -C "myemail@mydomain.com".  The -t option signifies type, and ed25519 refers to the algorithm based on Elliptic Curve Cryptography (it competes with RSA which is needed for compatibility with older systems). The -C flag provides a new comment. info ssh-keygen will help you decode other command line options for generating keys.

The generated key is stored in ~/.ssh.

No comments: