# Keys from PuTTY and WinSCP

> Import a PuTTY or WinSCP key (.ppk) into HiveBoard as it is: which versions and key types are read, how the passphrase is kept, and what is refused.

Source: https://hiveboard.dev/docs/keys/putty-keys · Section: Keys and sign-in · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- A .ppk file from PuTTYgen or WinSCP is imported as it is, under Import key in the keychain.
- HiveBoard keeps its own copy in OpenSSH's format, locked with the same passphrase; your .ppk is not changed.
- Versions 2 and 3 of the format are read, with RSA, Ed25519 and ECDSA keys; version 1, DSA and Ed448 keys are refused with the reason.
- A key that lives in Pageant rather than in a file is used through this computer's SSH agent instead.

If you came to SSH through PuTTY or WinSCP, your key is probably a `.ppk` file — a format of PuTTY's own. HiveBoard takes it as it is: in Connections, open **Keychain**, press **Import key** and choose the file. There is nothing to convert first.

The keychain keeps every key in OpenSSH's format. So HiveBoard reads the `.ppk` once, checks it, and writes the key into its data folder like any other key — protected by the same passphrase, if it had one. Your `.ppk` is not changed, and HiveBoard does not keep it.

## Importing a .ppk file

1. Open **Connections** and choose **Keychain** in the list on the left.
2. Press **Import key**.
3. Give the key a **Name** (for example "Laptop key").
4. Press **Choose a file…** and pick the `.ppk` file, or paste its text into the **Private key** box. Choose the private key file, not a `.pub` file.
5. If the key has a passphrase, type it under **Passphrase**. It is used to check the key and is not stored.
6. Press **Import**.

The key then has its own card in the keychain, with its type and SHA-256 fingerprint, and can be chosen in any server's **Key** list. A key that came with a passphrase is marked *passphrase-protected*: a server that uses it waits for you to unlock it once on the [sign-in sheet](/docs/connections/sign-in-sheet).

> [!TIP]
> If the key is not yet on the cluster, use **Install on a server…** on its card. See [Installing a key on a server](/docs/keys/install-a-key).

## What is read

| | |
|---|---|
| Format versions | 2 and 3 |
| Key types | RSA, Ed25519, ECDSA (P-256, P-384, P-521) |
| Protection | none, or a passphrase; version 3 files with Argon2id (PuTTY's default), Argon2i or Argon2d |
| Checks | the file's check value (`Private-MAC`), and that its public half belongs to its private half |

A file that was altered or cut short fails the check and is refused.

## What is refused, and what it says

Each refusal begins "That PuTTY key file cannot be used:" and gives the reason:

| The file | Why, and what to do |
|---|---|
| Version 1 (PuTTY 0.51 or older) | load it in PuTTYgen and save it again |
| A DSA key | servers no longer accept it — make a new key |
| An Ed448 key | a key of a kind HiveBoard cannot use |
| Damaged or altered | its check value does not match |
| An unknown key derivation | in PuTTYgen choose Argon2id and save it again |

Two other answers are about the passphrase:

- "This key is protected by a passphrase. Enter it so HiveBoard can check the key — it is not stored." — type it and press **Import** again.
- "That passphrase does not unlock this key." — the passphrase is wrong (or the protected file was altered).

A key that is already in the keychain is not added twice: HiveBoard says under which name it is there.

## A key in Pageant

Pageant is PuTTY's agent: it holds keys in memory and signs for other programs. If your key lives in Pageant — or you would rather not copy it at all — you do not need to import it. Choose **This computer's SSH agent** as the server's key. On Windows HiveBoard finds a running Pageant (0.75 or later) by itself and asks it to sign when you connect. See [Security keys, smart cards and the SSH agent](/docs/keys/ssh-agent).

## Check yourself

1. You import a passphrase-protected .ppk file. What happens to the file on your disk?
   - Nothing: HiveBoard reads it once and keeps its own copy ← the answer
   - HiveBoard converts it to OpenSSH format in place
   - HiveBoard removes the passphrase from it
   Why: The .ppk is read once, checked and written down in the keychain in OpenSSH's format with the same passphrase; the original file is not changed.

2. Which of these .ppk files does HiveBoard refuse?
   - A version 3 file protected with Argon2id
   - An Ed25519 key in version 2 of the format
   - A DSA key ← the answer
   Why: DSA keys are refused (servers no longer accept them); versions 2 and 3 with RSA, Ed25519 or ECDSA keys are read.

## Try it in the app

- Open Connections, then **Keychain**, press **Import key** and read the hint under the private-key box about PuTTY files.
- If you use PuTTY, import your .ppk and check that the key's card shows the same SHA-256 fingerprint PuTTYgen shows for it.

## Related

- [The keychain](https://hiveboard.dev/docs/keys/keychain.md)
- [Security keys, smart cards and the SSH agent](https://hiveboard.dev/docs/keys/ssh-agent.md)
- [Installing a key on a server](https://hiveboard.dev/docs/keys/install-a-key.md)
- [Sign-in methods](https://hiveboard.dev/docs/connections/sign-in-methods.md)
