Generating an SSH key pair on Windows enables passwordless logins, safer automation for scripts and deployments, and less time spent feeding password prompts to terminals.
SSH uses asymmetric cryptography: the public key is installed on the server (commonly as a line inside ~/.ssh/authorized_keys), while the private key stays on the client and proves identity during the SSH handshake without being transmitted.
On Windows, PuTTY Key Generator (PuTTYgen) creates keys for PuTTY in .ppk format and supports modern algorithms such as EdDSA and ECDSA alongside RSA; protect the private key with a strong passphrase, avoid DSA, and keep generated key files in a location readable only by the intended account.
Related: How to generate SSH key pairs
Related: How to use public key authentication in PuTTY
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
The installer includes PuTTY; the portable build runs as a standalone puttygen.exe.

Prefer Ed25519 (EdDSA) when available; use RSA for broad compatibility; avoid DSA keys.
4096 is common for long-lived RSA keys.

Mouse movement provides randomness used during key generation.
Use a label such as work-laptop-2025 or user@host.
A private key saved without a passphrase can be used immediately by anyone who obtains the file.
The line begins with ssh-ed25519, ssh-rsa, or ecdsa-sha2-nistp256 and must remain a single line.
Exporting a public-key file is optional when copying directly into authorized_keys.

A private key shared is a private key no more, so store it securely and never share it with unauthorized individuals.
