- Open Settings, click on Apps.
- Under Optional Features, check if OpenSSH Client is listed.
- If not listed, add it by clicking "Add a feature" and selecting OpenSSH Client.
- Press the Windows key.
- Type
cmd
.
- Right-click Command Prompt and select "Run as Administrator."
- In the command prompt, type:
ssh-keygen
- Press Enter to use the default location.
- Enter a passphrase or press Enter to skip.
- The system will generate keys; locate them in
C:\Users\your_username/.ssh
.
- Public key:
id_rsa.pub
, Private key: id_rsa