

If you don’t specify your email address, the command will generate a random address using your account username computer name.Ĭonfirm a descriptive name for the file (for example, webserver) and press Enter. The default creates RSA keys, but you can change it to DSA, ECDSA, ECDSA-K, ED25519, or ED25519-SK. In the command, we’re using “ed25519” to create an EdDSA key type. Quick note: The “-t” option tells the command that you want to specify a new type of key. To generate SSH keys on Windows 11, use these steps:


On Windows 11, you can generate private and public SSH keys directly from Command Prompt or PowerShell without having to resource to third-party solutions, and in this guide, you will learn how. The keys will be generated inside the “.ssh” folder in your profile folder (or in the root of “C.”)

To generate SSH keys on Windows 11, open Command Prompt (admin), and run the “ssh-keygen,” confirm the name for the keys and passphrase.
