---
title: "Generate an SSH Key"
description: "Choose Linux, macOS, or Windows to create an SSH key pair and add its public key to Userify."
url: "https://userify.published.dev/docs/generating-ssh-keys-on-ec2.md"
canonical_url: "https://userify.published.dev/docs/generating-ssh-keys-on-ec2"
section: "Docs"
updated: "2026-12-01"
---

> Breadcrumbs: Docs > Generate an SSH Key
> Sitemap: https://userify.published.dev/docs/sitemap.md
> LLMS index: https://userify.published.dev/docs/llms.txt

# Generate an SSH Key

An SSH key pair has a private key and a public key. Keep the private key on your computer. Add the public key to Userify.

## Choose your operating system

- [Linux](https://userify.published.dev/docs/generating-ssh-key-linux)
- [macOS](https://userify.published.dev/docs/generating-ssh-key-mac)
- [Windows](https://userify.published.dev/docs/generating-ssh-key-windows)

## Protect your private key

A passphrase can protect your private key. Use a long passphrase made from at
least five or six randomly chosen words. An SSH agent or key manager may
remember an unlocked key. When you need to enter the passphrase depends on its
configuration.

## Continue reading
- Previous: [Connect Your First Server](https://userify.published.dev/docs/first-server.md)
- Next: [Multifactor Auth](https://userify.published.dev/docs/multifactor-authentication.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)