How to Create SSH Key Pair in Windows 11 On 3Engines Cloud[🔗](#how-to-create-ssh-key-pair-in-windows-11-on-brand-name "Permalink to this headline")
=====================================================================================================================================================

This guide will show you how to generate an SSH key pair in Windows 11 using OpenSSH. You will then be able to use that key pair to control appropriately configured virtual machines hosted on 3Engines Cloud cloud.

This article only covers the basics of this function and assumes that you will not change the names of generated keys.

Prerequisites[🔗](#prerequisites "Permalink to this headline")
-------------------------------------------------------------

No. 1 **Local computer running Windows 11**

We assume that you have a local computer which runs Windows 11. This article does **not** cover the Windows Server family of operating systems.

Step 1: Verify whether OpenSSH Client is installed[🔗](#step-1-verify-whether-openssh-client-is-installed "Permalink to this headline")
--------------------------------------------------------------------------------------------------------------------------------------

Open the Command Prompt (**cmd.exe**).

![create_ssh_key_windows_11-03_creodias.png](../_images/create_ssh_key_windows_11-03_creodias.png)

Execute the following command and press Enter:

```
ssh

```

If SSH client is installed, the output should contain information about how to use it:

![create_ssh_key_windows_11-04_creodias.png](../_images/create_ssh_key_windows_11-04_creodias.png)

If, however, you got the following output:

```
'ssh' is not recognized as an internal or external command,
operable program or batch file.

```

it means that SSH client is not installed on your machine.

Step 2: Install OpenSSH[🔗](#step-2-install-openssh "Permalink to this headline")
--------------------------------------------------------------------------------

This step is only required if you don’t have SSH client installed. If you do have it, skip to Step 3.

Minimize the Command Prompt if you still have it open.

Open the system **Settings** application and enter section **System** -> **Optional features**

![create_ssh_key_windows_11-07_creodias.png](../_images/create_ssh_key_windows_11-07_creodias.png)

In section **Add an optional feature**, click **View features**.

![create_ssh_key_windows_11-08_creodias.png](../_images/create_ssh_key_windows_11-08_creodias.png)
![create_ssh_key_windows_11-09_creodias.png](../_images/create_ssh_key_windows_11-09_creodias.png)

In text field **Find an available optional feature**, enter **openssh**

![create_ssh_key_windows_11-10_creodias.png](../_images/create_ssh_key_windows_11-10_creodias.png)

Two features should be displayed:

> * **OpenSSH Client** which you can use to control other devices.
> * **OpenSSH Server** which you can install to allow other devices to control your computer. This option is outside of scope of this article.

Tick the checkbox next to **OpenSSH Client** and click **Next**

![create_ssh_key_windows_11-11_creodias.png](../_images/create_ssh_key_windows_11-11_creodias.png)

You should now get the following window:

![create_ssh_key_windows_11-12_creodias.png](../_images/create_ssh_key_windows_11-12_creodias.png)

Click **Add**

Wait until the process is finished:

![create_ssh_key_windows_11-13_creodias.png](../_images/create_ssh_key_windows_11-13_creodias.png)

It might last several dozen minutes.

Once it’s over, you should see the confirmation that the component was **Added**

![create_ssh_key_windows_11-14_creodias.png](../_images/create_ssh_key_windows_11-14_creodias.png)

Step 3: Use ssh-keygen to generate an SSH key pair[🔗](#step-3-use-ssh-keygen-to-generate-an-ssh-key-pair "Permalink to this headline")
--------------------------------------------------------------------------------------------------------------------------------------

Return to the Command Prompt you previously opened. Enter the following command to generate an SSH key pair:

```
ssh-keygen

```

![create_ssh_key_windows_11-15_creodias.png](../_images/create_ssh_key_windows_11-15_creodias.png)

Of course, you can fine tune the security and other properties of this key pair during this process. However, if you’re just getting started, you can simply accept default values by pressing Enter multiple times until the program finishes its operation and you are once again prompted for enterring the command.

![create_ssh_key_windows_11-16_creodias.png](../_images/create_ssh_key_windows_11-16_creodias.png)

Your key pair should now be generated.

As of writing of this article, by default this process should create:

> * a directory **.ssh** in your home directory, and in that directory:
>
>   > + file **id\_ed25519** for secret key, and
>   > + file named **id\_ed25519.pub** for public key

OpenSSH names these files based on algorithm used. As of writing of this article, the names of these files come from the Ed25519 algorithm. Previously, the RSA algorithm was used, and the files were by default called **id\_rsa** and **id\_rsa.pub**

If in the future the default algorithm used by OpenSSH changes, the default names of keys will likely be different.

Step 4: See generated key pair[🔗](#step-4-see-generated-key-pair "Permalink to this headline")
----------------------------------------------------------------------------------------------

Open the **Run** window by pressing the key combination **Windows+R** (if you are using a macOS keyboard, then **Cmd+R**)

Enter in its text field:

```
%USERPROFILE%\.ssh

```

![create_ssh_key_windows_11-19_creodias.png](../_images/create_ssh_key_windows_11-19_creodias.png)

You should get to **.ssh** folder which is located in your account profile folder.

You should there see your SSH keys:

![create_ssh_key_windows_11-20_creodias.png](../_images/create_ssh_key_windows_11-20_creodias.png)

In our example, these are two files:

> * **id\_ed25519** which is our private key
> * **id\_ed25519.pub** which is our public key

Note that public SSH key and Microsoft Publisher documents share the same extension - **.pub**

Because of that, Windows might mistakenly mark your public SSH key as a Microsoft Publisher document, as was the case on screenshot above.

If you want to see the full extensions of files, including **.pub**, click **View** on the task bar of the File Explorer. After that, click **Show** -> **File name extensions**

![create_ssh_key_windows_11-21_creodias.png](../_images/create_ssh_key_windows_11-21_creodias.png)
![create_ssh_key_windows_11-22_creodias.png](../_images/create_ssh_key_windows_11-22_creodias.png)

What To Do Next[🔗](#what-to-do-next "Permalink to this headline")
-----------------------------------------------------------------

For Windows 10, see this guide: [How to Create SSH Key Pair in Windows 10 On 3Engines Cloud](How-To-Create-SSH-Key-Pair-In-Windows-On-3Engines-Cloud.html.md)

To be able to easily add your new public key to VMs you might create in the future, upload it to OpenStack. Thanks to that, you will be able to use it to authenticate to VMs which support it.

Learn more here:

[How to add SSH key from Horizon web console on 3Engines Cloud](../networking/How-to-add-SSH-key-from-Horizon-web-console-on-3Engines-Cloud.html.md)

Once you’ve done it, you can create a new virtual machine on 3Engines Cloud cloud and authenticate with your key pair:

[How to create a Linux VM and access it from Windows desktop on 3Engines Cloud](../cloud/How-to-create-a-Linux-VM-and-access-it-from-Windows-desktop-on-3Engines-Cloud.html.md)

The following articles cover how to connect to virtual machines via SSH once they’ve already been created: