Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to Generate SSH keys in Windows 11

Posted on 31/03/202315/08/2026 Matthew By Matthew No Comments on How to Generate SSH keys in Windows 11
  1. Home
  2. Windows
  3. How to Generate SSH keys in Windows 11
SSH-Keys-Generation
SSH Keys Generation in Windows 11

In this article, we shall discuss “How to Generate SSH keys in Windows 11”. For encrypted connections between a client and a server, an SSH key, or Secure Shell key, is used as authentication. It’s commonly used for gaining remote access to servers and other network devices because of the safety it offers in authenticating and establishing a secure link between two machines. In this article, you will learn how to Generate SSH keys in Windows 11. Please see: How to Fix OneDrive Error 0x80071129: The tag present in the reparse point buffer is invalid on Windows 11, and How to Scan WordPress websites With WPScan For Security Vulnerabilities.

To use SSH key authentication, a combination of keys—a public and a private one—must be generated. The client computer stores the private key while the public key is sent to the server or other device you’re trying to connect to.

The server will ask for the client’s public key when the client initiates a connection. The server then compares the key to a roster of approved keys, and grants entry to the client if there is a match. This method is a safe and effective means to verify distant links.

The use of SSH keys for authentication has many benefits over the use of passwords. They are more secure and difficult to break than other passcode systems. Furthermore, since the client can identify without human input, SSH keys offer a safe method for automating distant duties. Please, see how to add and modify the Windows Registry from the Command Prompt.

Methods on how to Generate SSH keys in Windows 11

The SSH key can be generated on Windows 11 in various ways which I have outlined below.

Option 1: Generate SSH Keys in Windows 11 using OpenSSH Client

Also, see how to Fix Failed to open the Group Policy Object on this Computer, and how To Fix WordPress error “The Link You Followed Has Expired”.

Step 1: Confirm that the OpenSSH Client is installed

It is necessary to first determine if the OpenSSH client is installed on the system. To do so, follow the steps below:

Press the Windows key + I to open the system settings, and choose “Apps.” Click on “Optional features” from the “Apps” configuration panel.

Generate SSH keys: Apps-Settings
Open the Apps setting

Under the “Installed features” search menu, type “OpenSSH.”

The OpenSSH client and server tools are already installed on the system, as can be seen.
Generate SSH keys: Installed-Features
Search for OpenSSH in the installed features

The OpenSSH client utility comes pre-installed on Windows 11. In any event, if OpenSSH is not already installed, you must install it first.

To do so, go to the “Apps” settings and choose the “Add Optional Feature” option.

Generate SSH keys: 3_Add-an-optional-feature
Add an optional feature

Next, in the search box, type “OpenSSH”. If the OpenSSH client and server are not installed, they will show in the search results. Since the OpenSSH client and server utilities are already installed on the system. The search result is empty.

Generate SSH keys: 4_Search-for-OpenSSH
Search for OpenSSH
Step 2: Launch the Command Prompt.

To launch the Windows Command Prompt, click the “Search” button in the Windows 11 Desktop Taskbar. In the search field, type “command prompt” and choose Command Prompt as Administrator from the display results.

Generate SSH keys: 5_Command-Prompt
Open the command prompt

Step 3: Create SSH Keys in Windows 11

To generate an SSH key, use the “ssh-keygen” command. You must give the following information:

  • Enter the location where you want to store your SSH key or press Enter to continue with the default location.
  • Add a passphrase or password, input it, then retype it for confirmation.

It is not required to input a passcode. Just hit the Enter key to proceed.

Generate SSH keys: 6_Generate-SSH-keys
Generate SSH keys

As you can see, we successfully generated SSH keys on Windows 11.

Step 4: Confirm Key Creation

SSH keys are often saved in the “C:\Users\<username>\.ssh” directory. Go to the place where you stored the ssh key. There are two files there: “id rsa” and “id rsa.pub.”

7_SSH-keys-stored-location
Location of the generated SSH keys

You can see that the SSH key was successfully produced in the “C:\Users\<username>\.ssh” directory.

Option 2: Use PuTTY to generate keys.

PuTTY is open-source and free software. It is available from the PuTTY latest release website.

After installing PuTTY, hit the Windows key or open the Windows and enter “puttygen” to launch the “PuTTYgen” software.

8_Launch-Puttygen
Open the Puttygen program

When it’s open, you’ll notice the different sorts of keys to produce at the bottom of the window. If you’re unsure, choose “RSA” and then enter “4096” in the text box labeled “Number of bits in a generated key.”

Another option is to pick “EdDSA,” then select “Ed25519 (255 bits)” from the drop-down menu that appears below it.

9_Generate-SSH-keys-in-Puttygen
Putty Key Generator

All you have to do now is click “Generate,” and PuTTY will begin to work. Depending on the power of your machine, this shouldn’t take long, and PuTTy will ask you to move your mouse about within the window to assist in providing a bit more randomness during key creation.

10_Puttygen-Random-key-generation

After that, click “Save Public Key” to store your public key. Save it anywhere you like with the name “id rsa.pub” or “id ed25519.pub,” depending on whether you chose RSA or Ed25519 in the previous step.

11_Public-keys
Generated Public keys
The private key must now be stored.

Choose “Export OpenSSH Key” from the “conversions” option at the top.

In most cases, you want to store this without a password, so choose “Yes” in the following dialog box. Select a place to store the key and give it a name (for example, putty key).

12_Private-keys
Generated Private keys
Your keys have been produced, and you may now exit the PuTTY key generator.

To utilize your new key with PuTTY, go to the PuTTY setup and open “Connection” and “Auth.” Choose the private key you just stored under “Private Key file for authentication.”

Conclusion

Even though SSH keys are more secure and convenient than passwords, it is important to keep track of and safeguard them. It is important to safely keep keys and only allow authorized sites and devices to access them.

In addition, keys should be changed frequently and revoked when they are no longer required.

I hope you found this blog post helpful on how to Generate SSH keys in Windows 11. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows, Windows Server Tags:SSH, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Fix WordPress Error “The Link You Followed Has Expired”
Next Post: How to Fix Failed to open the Group Policy Object on this Computer

Related Posts

  • screenshot 2020 05 05 at 10.26.12
    How to enable or disable User Account Control Windows
  • Screenshot 2020 08 07 at 21.09.01
    Error 0x204: Unable to Connect to Remote PC [Part 2] Windows
  • How to integrate your phone and other devices with Microsoft Edge
    Integrate your phone and other devices with Microsoft Edge Windows
  • Feature image
    When Should I Use TPM or TPM + PIN Security | Vulnerability Scans and Assessment
  • Group Policy Error
    How to Fix Failed to open the Group Policy Object on this Computer Windows
  • screenshot 2020 03 07 at 22.25.21
    How to configure the FrontFace Lockdown Tool Windows

More Related Articles

LDAP LDAP: What is Lightweight Directory Access Protocol Windows
article 1280x720.78eff5c4 How to reset your built-in Local Administrator password in Windows 10 Windows Server
2019computers windows 10 window on blue background 131108 29 This installation package could not be opened: Verify that the package exists and that you can access it Windows
integrate Icloud with Windows Synchronize Apple Calendar on Windows with Outlook [Part 2] Mac
image 37 There was an error opening the Trusted Platform Module snap-in: You do not have permission to open the Trusted Platform Module Console Windows
fast user switching in windows 10 2 To enable or disable fast User Switching in Windows Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Gfeature
    How to install Googler on a Linux System Linux
  • Amazon
    Import Virtual Machines to AWS as AMI AWS/Azure/OpenShift
  • IAM AWS
    Creating IAM Users, Adding MFA and Policies on AWS AWS/Azure/OpenShift
  • copy and paste between host machines and VirtualBox VM
    How to copy and paste between host machines and VirtualBox VM Virtualization
  • Azure Backup Copy 1
    How to Delete Backup Job in Recovery Services Vault AWS/Azure/OpenShift
  • Screenshot 2020 06 22 at 11.33.46
    How to fix Bluetooth not available on MacBook Mac
  • How to configure Azure container register with secured connection with container apps
    Configure Azure Container Registry for a secure connection with Azure Container Apps AWS/Azure/OpenShift
  • image 6
    Set Browers and Windows to reopen Apps on Startup Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,745 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.