Strovent SystemsSign in
App guide

SSH key import errors: "Only OpenSSH-format keys are supported"

What each Strovent Terminal SSH key import error means, from Only OpenSSH-format keys are supported to Not an OpenSSH private key and Wrong passphrase.

When Strovent Terminal cannot import a private key, it shows an SSH key alert with the reason. You import keys on an SSH or Mosh profile in Manage configurations…, under Add a key, with Import file or Paste. The app reads keys in the OpenSSH private key format, the one that starts with -----BEGIN OPENSSH PRIVATE KEY-----, for Ed25519, ECDSA P-256 and RSA keys and for security keys.

"Only OpenSSH-format keys are supported."

The file is a private key, but in an older format. Its first line is one of these:

  • -----BEGIN RSA PRIVATE KEY----- or -----BEGIN EC PRIVATE KEY----- (traditional PEM)
  • -----BEGIN PRIVATE KEY----- or -----BEGIN ENCRYPTED PRIVATE KEY----- (PKCS#8)
  • -----BEGIN DSA PRIVATE KEY-----

On a computer with OpenSSH, rewrite a copy of the key in the OpenSSH format, then import the copy:

cp id_rsa id_rsa_openssh
ssh-keygen -p -f id_rsa_openssh

ssh-keygen -p asks for the current passphrase, if the key has one, and for a new one. It then saves the file in the OpenSSH format. Work on a copy, because the command changes the file it is given. The app refuses DSA keys in any format, as below.

"Not an OpenSSH private key"

The text has no OpenSSH private key in it. Usual causes:

  • The public key. A line starting with ssh-ed25519 AAAA or ssh-rsa AAAA is the .pub half. Import the file without .pub.
  • A PuTTY key. A .ppk file starts with PuTTY-User-Key-File-. Convert it first, as in Convert a PuTTY .ppk key to OpenSSH format, and PPK version 3.
  • An incomplete paste. The -----BEGIN or -----END line is missing. Copy the whole file again, from the first dash to the last.

Passphrase messages

If the key is protected by a passphrase, the app asks for it in a Key passphrase sheet. The passphrase is used once for the import.

  • "This key is protected by a passphrase. Enter the passphrase to import it." The passphrase field was empty. Type the passphrase and tap Import.
  • "Wrong passphrase or corrupt key". The passphrase did not open the key. Check capital letters and the keyboard layout, then try again. If you are sure of the passphrase, the file is damaged: copy it again.
  • "Passphrase is too long". The app accepts up to 1024 characters.
  • "Unsupported key cipher", "Unsupported key KDF" or "Unsupported passphrase KDF cost". The key was encrypted with a non-default setting, such as another cipher or a very high -a round count. Run ssh-keygen -p -f on a copy, as above. It re-encrypts with the defaults, which the app reads.

"Unsupported key type ... Use an Ed25519, ECDSA P-256 or RSA key."

The key is in the right format, but the app does not support its type. Examples are DSA (ssh-dss) and ECDSA on the P-384 or P-521 curves. Make a new key instead: tap Generate for an Ed25519 key, then add its public key to the host as in SSH keys.

Other messages

  • "Files with several keys are not supported". The file holds more than one key. Export each key to its own file.
  • "Key file is too large". The app reads key text up to about 256 KB. A real key file is a few kilobytes, so this is usually the wrong file.
  • "Corrupt Ed25519 key", "Corrupt ECDSA key", "Corrupt RSA key", "Corrupt security key", "Key type does not match key data" or "truncated". The file has the right markers, but the key inside is damaged. Copy it again from the original.

Spotted a mistake? Email [email protected].