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.
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
- Open Connections and choose Keychain in the list on the left.
- Press Import key.
- Give the key a Name (for example “Laptop key”).
- Press Choose a file… and pick the
.ppkfile, or paste its text into the Private key box. Choose the private key file, not a.pubfile. - If the key has a passphrase, type it under Passphrase. It is used to check the key and is not stored.
- 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.
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.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
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
- HiveBoard converts it to OpenSSH format in place
- HiveBoard removes the passphrase from it
Show the answer
Nothing: HiveBoard reads it once and keeps its own copy 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.
-
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
Show the answer
A DSA key 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
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.