Follow the steps below to generate SSH keys on your windows pc quickly.

1. Open the Windows command prompt.

To access the Windows command prompt, you have a couple of convenient options. First, you can simultaneously press the Windows key and the letter ‘R’ on your keyboard. This will open the Run dialog box. In that box, type “cmd” and press Enter, which will launch the command prompt window. Alternatively, you can search for the command prompt by clicking on the Windows Start menu and typing “cmd” into the search bar. Once it appears in the list, click it to open it.

2. Execute the ssh-keygen command.

ssh-keygen

You will be asked to specify where to save the encryption key. Additionally, there is an option to set a passphrase for added security, though providing this is not mandatory.

windows command prompt

After the keys have been successfully generated, you can use your file explorer to navigate to the specific folder where you saved them.

To use the public key, open the public key file with a suitable text editor (it usually ends with a .pub file extension). Once the contents are displayed, select the entire key and copy it. You can then paste it wherever you need to use the public key, whether for setting up secure connections, configuring a service, or sharing it with others.

Tagged in:

,