Documentation · Terminal and SSH · SSH keys

SSH keys

Where the keys for signing in to servers are kept, and how to create or add a key.

SSH keys

The SSH Keys tab stores the keys for signing in to servers. The Usage column shows how many connections use the key. The buttons in a row are Copy public key, View / edit, and Delete key.

The SSH Keys tab with demo keys. The Add key and Generate key buttons and the buttons in a key row are outlined.

Create a key

  1. On the SSH Keys tab, click Generate key.
  2. Make sure Generate new is selected in the form.
    The key creation panel. Generate new (2), the Name and Algorithm fields (3), and the Generate button (4) are outlined.
  3. Enter a Name and choose an Algorithm: Ed25519 (the default), RSA 2048, 3072, or 4096, or ECDSA P-256, P-384, or P-521. A key passphrase is optional.
  4. Click the create button at the bottom of the panel.

After the key is created, you'll see the message Key created. Copy the public key into ~/.ssh/authorized_keys on the server.

Add an existing key

  1. On the SSH Keys tab, click Add key.
  2. Make sure Import existing is selected in the form.
    The Add key panel. Import existing (2), the Name and Private key fields (3), and the Import button (4) are outlined.
  3. Enter a Name and paste the key into the Private key (PEM) field. If the key is protected with a passphrase, enter it in Passphrase.
  4. Click the add button at the bottom of the panel.

View, edit, or delete a key

View / edit opens the key's panel: there you can rename the key, change its comment, show the private key with the Reveal button, and copy it with the Copy private key button.

Delete key asks for confirmation. If the key is used by connections, the window warns: Key "name" is used by N connection(s). They will lose their key and must be reassigned. Delete? Those connections then show The previously selected key was deleted — pick another one.

Troubleshooting

Wrong passphrase or The key is encrypted — enter its passphrase

What happened. When adding a key on the SSH Keys tab: the key is protected with a passphrase, and the passphrase is missing or wrong.

What to do. Enter the correct key passphrase in the Passphrase field.

The previously selected key was deleted — pick another one

What happened. The key selected in a connection was deleted on the SSH Keys tab.

What to do. Open the connection and choose another key.