# Add an SSH key

SSH keys let you connect securely without a password.

## Steps

1. Generate a key pair on your computer if you don't have one:
   - macOS/Linux: `ssh-keygen -t ed25519 -C "you@example.com"`
   - Windows: use PuTTYgen or `ssh-keygen` in PowerShell.
2. Copy your **public** key (the `.pub` file, starting with `ssh-ed25519` or `ssh-rsa`). Never share the private key.
3. Go to **Websites → [site] → SSH keys** and click **Add key**, then paste the public key.
4. Save. You can now connect using the matching private key.

## Troubleshooting

- **Permission denied (publickey)** — you likely pasted the private key or wrong file; paste the `.pub` contents.
- **Which key was used?** — remove and re-add if unsure; keep your private key safe.

**Related:** Create an SFTP/FTP account and connect · Use the file manager