SSH keys are authentic credentials for securing file transfer and computer connection.

Compared with using the SSH protocol with username and password, SSH keys can be more reliable.

This post onMiniToolshows you how to generate SSH keys in Windows within a few steps.

add the OpenSSH client feature

SSHrefers to Secure Shell, a remote administrator protocol that creates a secure connection tunnel with another computer.

Step 2: Typeoptional featuresin the search bar and chooseAdd an optional featurefrom the result list.

If not, clickAdd a featureto search and install it.

type ssh-keygen

Step 1: PressWin + Rto launch the Run window.

Step 2: Typecmdinto the text box and pressShift + Ctrl + Enterto run Command Prompt as administrator.

Step 3: Typessh-keygenand hitEnter.

type ssh-key -t ed25519

It will generate an RSA SSH key automatically.

If you want to generate Ed25519 SSH keys, you should change the command line tossh-keygen -t ed25519and hitEnter.

Step 4: You will be asked to enter a file path to save the key.

choose a location to save the key

Step 5: Then, you’re able to set a passphrase.

Therefore, though this is an optional step, we suggest you set a passphrase.

If you really dont want a passphrase, simply hitEnterto complete the process.

create or skip the passphrase

The key fingerprint can be used to confirm authenticity when first connected to a remote server.

Now the SSH key has been generated.

you might find two keys in the location: a private key and a public one.

The file with a .pub extension is the public key.

But you should probably specify what kind of SSH key you want to create initially.

Here are the detailed steps.

Step 1:Launch the WSL terminalon your system.

Step 2: bang out different commands to create different types of keys.

You are suggested to add your email address to distinguish which account the key belongs to.

Step 3: Set the save location or use the default location and hitEnter.

Step 4: Set the passphrase or skip this step by pressingEnter.

Now, you have successfully generated SSH keys.

Bottom Line

It is easy and convenient to generate SSH keys in Windows with the methods above.