---
title: "Generating SSH Keys on Windows"
description: "Create an SSH key pair in PowerShell and add its public key to Userify."
url: "https://userify.published.dev/docs/generating-ssh-key-windows.md"
canonical_url: "https://userify.published.dev/docs/generating-ssh-key-windows"
section: "Docs"
updated: "2026-12-01"
---

> Breadcrumbs: Docs > Generating SSH Keys on Windows
> Sitemap: https://userify.published.dev/docs/sitemap.md
> LLMS index: https://userify.published.dev/docs/llms.txt

# Generating SSH Keys on Windows

Windows 10 and Windows Server 2019 and later include OpenSSH, or you can
[install it from Microsoft](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse).

After installation, generate a new SSH key in PowerShell. This guide covers a
key pair that you create on your computer.

If you already have a key at the default location, do not overwrite it unless
you intend to replace it. Choose another filename when `ssh-keygen` asks where
to save the new key.

```powershell
ssh-keygen -t ed25519 -C "youremail@somewhere.com"
```

When the command asks where to save the key, press Enter to use the default path. If a key already exists there, choose a different filename unless you intend to replace it. If you choose another filename, replace `id_ed25519` in each later path and command.

When prompted, use a long passphrase made from at least five or six randomly
chosen words. You can leave the other prompts blank.

Windows OpenSSH can use an SSH agent to remember an unlocked key. The setup and
when you need to enter the passphrase depend on your Windows and SSH client
settings. If you forget the passphrase, you cannot recover it. Create a
replacement key and add its public key to Userify; keep your existing key until
the replacement works.

By default, the key files are `$HOME\.ssh\id_ed25519` and
`$HOME\.ssh\id_ed25519.pub`. If you chose a different filename, use it below.

Copy only the public key into Userify. Keep the private key on your computer.
Display the public key with:

```powershell
Get-Content "$HOME\.ssh\id_ed25519.pub"
```

After Userify has access to your public key, connect to the server from
PowerShell with:

```powershell
ssh -i "$HOME\.ssh\id_ed25519" YourUserifyUsername@ServerIP
```

Replace `YourUserifyUsername` and `ServerIP` with your Userify username and the
server address. Your SSH client may ask for your key's passphrase.

[See Microsoft’s additional OpenSSH key management documentation](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement).

## Continue reading
- Previous: [Generating SSH Keys on Mac](https://userify.published.dev/docs/generating-ssh-key-mac.md)
- Next: [Creating Your Company](https://userify.published.dev/docs/creating-your-company.md)

## Section links
- [Docs home](https://userify.published.dev/docs)
- [LLMS index](https://userify.published.dev/docs/llms.txt)
- [Sitemap](https://userify.published.dev/docs/sitemap.md)