Skip to content

Import failures

This page lists what ZestSSH says when an import does not work, and what to do. Where a message has Copy details, use it: the copy is cleaned of keys, passwords, addresses and names, so you can paste it to support safely.

Import a file did not recognize the file. Under It is something else…, choose which app or format it comes from, and ZestSSH reads it as that. If it still finds nothing, check that you chose the export itself, and export it again from the other app.

You chose a source and picked a file for another one, such as a backup under SSH config file. Nothing of the file was read as hosts. Where another import can take it, Import it hands it over. If you pasted it, ZestSSH says “This is something else, and as pasted text it cannot go there. Nothing was kept. Choose the file under Import a file, or add a key under Keys.” It looks before anything shows in the field, however short the text. Paste a list treats what is pasted the same way: a private key is refused, none of it is read as hosts, and the field is left empty.

A file with a private key in it and other text as well, such as a config with a key pasted into it, also offers Read the rest: “The file holds other text as well. Read the rest reads that as SSH config file, with the key left out.” Choose it if that is what you meant: the file is read then, not before, and none of the key is listed or shown. A comment that only names a key’s first line does not make a file a key, and takes no such step. A file that is only a key offers no other import, and neither does pasted text.

“Looks like a known_hosts file” or “Looks like a public key or a certificate”

Section titled ““Looks like a known_hosts file” or “Looks like a public key or a certificate””

There is nothing to import from these. A known_hosts file holds the keys of servers you connected to, not hosts to save; ZestSSH keeps its own list, asks the first time it connects to a host, and stops if a key changes. A public key cannot sign you in on its own: add the private key on the Keys page.

You import a key file on the Keys page: on a computer, New key > Import or paste key > Set up SSH key, then the Import or Paste tab; on a phone, Manage > Keys > +, SSH key, then Import from file or Paste key. ZestSSH reads OpenSSH private keys, PEM private keys (RSA PRIVATE KEY, EC PRIVATE KEY) and PuTTY .ppk files. A key in another form, SSH.com or SecureCRT, PGP, binary DER or PKCS#12, is said at once, with no question about a passphrase first.

“This is not a private key ZestSSH can read. Choose an OpenSSH or PEM private key, or a PuTTY .ppk file.”

Section titled ““This is not a private key ZestSSH can read. Choose an OpenSSH or PEM private key, or a PuTTY .ppk file.””

The file is not a private key ZestSSH knows: often a public key (.pub), a certificate, or a file in another format, among them keys from SSH.com or SecureCRT and PGP keys, even where they are encrypted.

  1. Open the file in a text editor. A private key starts with -----BEGIN and ends with -----END, or, for PuTTY, starts with PuTTY-User-Key-File-2: or PuTTY-User-Key-File-3:.
  2. Choose the private key, not the .pub file next to it.
  3. If the file is saved as UTF-16, save it again as UTF-8 or ASCII. Windows line endings are fine.

If you paste a public key on the Paste tab, ZestSSH says “That’s a public key. Paste the private key instead (starts with “-----BEGIN”)”.

ZestSSH read the file but cannot use this kind of key. This happens with:

  • DSA keys, in any format.
  • ECDSA keys in a .ppk file. A .ppk can hold an RSA or Ed25519 key. For ECDSA, open the key in PuTTYgen, choose Conversions > Export OpenSSH key, and import the exported file: ZestSSH reads ECDSA keys in OpenSSH and PEM format.
  • A PEM file that says BEGIN PRIVATE KEY or BEGIN ENCRYPTED PRIVATE KEY (PKCS#8). Convert it to the OpenSSH format with ssh-keygen and import the result.
  • An old PEM key encrypted with a cipher other than AES (for example DES-EDE3-CBC). ZestSSH reads old PEM keys encrypted with AES-128, AES-192 or AES-256, in CBC or CTR mode. Re-encrypt the key with ssh-keygen -p -f your_key.

If none of these fits, make a new key in ZestSSH (Ed25519, ECDSA or RSA) and put it on your servers with Install a key on hosts.

The file looked like a key file but held no private key. Check that it is the whole private key file, not cut short, and export it again from where it came from.

“Incorrect passphrase. Please try again.”

Section titled ““Incorrect passphrase. Please try again.””

The key has a passphrase and the one you typed does not open it. Passphrases are case-sensitive. You get three tries; after the third, ZestSSH says “Import failed: Failed to decrypt key after 3 attempts.” Choose the file again to start over.

To check the passphrase on a computer with OpenSSH:

Terminal window
ssh-keygen -y -f your_key

It asks for the passphrase and prints the public key when it is right. If the passphrase is lost, make a new key and put it on your servers.

“This key file is damaged or was changed, so it was not imported.”

Section titled ““This key file is damaged or was changed, so it was not imported.””

A .ppk file failed its own integrity check: it was changed after PuTTYgen wrote it, or it is a version 1 file, which ZestSSH does not read. Open the key in a recent PuTTYgen and save it again, or export it again from where it came from.

For a .ppk with a passphrase, a failed check is taken as a wrong passphrase: you see “Incorrect passphrase. Please try again.” instead.

“This key has a passphrase. Add it from the Keys page, where importing a key file asks for it.”

Section titled ““This key has a passphrase. Add it from the Keys page, where importing a key file asks for it.””

You used a phone’s More > Settings > Backups and data > Import data > PuTTY private key (.ppk), which cannot ask for a passphrase. Import the key from the Keys page instead.

That same row says “That file is not a PuTTY .ppk key” when the file you chose is not a .ppk. Import other key files from the Keys page.

On a computer, the import lists what it left out under “N entries couldn’t be imported”, with a reason for each:

  • Wildcard pattern, describes many hosts: a Host line with only patterns (Host *, Host prod-*). These are defaults for other hosts, not hosts.
  • Invalid host: the address has a space, a control character or a shell character, or is longer than 253 characters.
  • Invalid port: Port is not a number from 1 to 65535.

Fix those entries in the file and import again. A phone shows only what it can import, and “No Host blocks found” when that is nothing.

A user name with control or text-direction characters is not refused: those characters are taken out, and the host is imported. An IdentityFile path with .. in it is left out, and the host is still imported.

ZestSSH copies the private keys a config names only when you tick Import the key these hosts use (or “Import the N keys these hosts use”). The box starts unticked. It appears only when ZestSSH could read at least one of the key files, and a phone’s Data > Import data > SSH config file does not offer it.

A key file is read only when:

  • the path is absolute, starts with ~, or is relative to the config file you chose (a pasted config has no folder, so a relative path is not read);
  • it is not a network path (\\server\share or //server/share);
  • it is a regular file of at most 64 KB that holds a private key.

A key also needs a User line in its Host block: the private key is saved in the key made for that user on the Keys page. Where a key did not come in, the host’s note keeps the path as IdentityFile: <path>.

To add a key afterwards, open the host’s key on the Keys page (it is named after the host, followed by “(imported)”) and import the key there. Nothing needs to be linked again.

Directive Used
Host, HostName, Port, User Yes
IdentityFile The key, if you tick the offer; else the path in the host’s note
ProxyJump Yes, as the host’s jump host, when its first hop names a host of the import or one you have
Match No
Include No, only the file you import is read
LocalForward, RemoteForward, DynamicForward No
ProxyCommand, ControlMaster, and the rest No

Directives that are not used are passed over without a message.

“The file could not be read.” or “This could not be read as an SSH config file.”

Section titled ““The file could not be read.” or “This could not be read as an SSH config file.””

The first means ZestSSH could not open the file you chose (a permission, or a file that is not text). The second means its text could not be read as a config. Both have Copy details. Check that you chose the config file itself, or paste its text instead.

“Please enter or paste SSH config content” means the text field is empty.

“The file is larger than 5 MB.” or “Only the first 5,000 hosts are read.”

Section titled ““The file is larger than 5 MB.” or “Only the first 5,000 hosts are read.””

A config larger than 5 MB is not read at all: split it, or paste only the hosts you want. A config with more than 5,000 hosts lists the first 5,000 and says so. A hostname that starts with a dash is not a host (it would read as a command-line option), and is left out, as in every import.

CSV, MobaXterm, SecureCRT and Paste a list

Section titled “CSV, MobaXterm, SecureCRT and Paste a list”

These imports show every host with what will happen to it before anything is saved. A file that cannot be read at all says one of:

Message What to do
“The file is larger than 5 MB.” Split the file
“There is nothing in the file.” Choose the right file
“None of the file’s columns is a host. Name one host, address or ip in its first line.” Add a header line with a host, address or ip column
“No MobaXterm sessions were found in this file.” (or SecureCRT) Export the sessions again, as the source’s help text says
“There is no host in the list: every line is blank or starts with #.” Paste at least one host
“The file could not be read.” Check the file opens, then try again

A file saved as UTF-8, UTF-16 (with its byte order mark) or Latin-1 is read, with a comma, semicolon or tab between columns.

Each line with a problem is shown with its line number and is not imported:

  • No host: the line has nothing in its host column.
  • Not an address: what is in the host column is not an address.
  • Port not 1 to 65535
  • Not ssh, mosh, et or telnet: the protocol column names something else.
  • Twice in the file: an earlier line has the same address and port.
  • Already here: you already have a host with that address and port.

Other messages:

  • “Only the first 5000 hosts are read.”: split a larger file.
  • “Columns left out:” lists header names ZestSSH does not use.
  • “No key here is named …” or “Two keys here are named …”: the key column names a key you do not have, or two keys share that name. Rename a key on the Keys page, or leave the column empty.

If some hosts could not be saved, ZestSSH says “N hosts could not be imported” with Copy details. See Import hosts from a CSV file.

Message What it means
“PuTTY session import is only available on Windows.” PuTTY’s sessions are in the Windows registry. Import them on the Windows PC and sync, or export them to a .reg file there and import that
“No PuTTY sessions found in the Windows registry.” PuTTY has no saved sessions for this Windows user, or none with a host name
“Failed to scan PuTTY sessions from registry.” ZestSSH could not run Windows’ reg tool to read the registry. Try again, or add the hosts another way

Imported sessions come in without their user names. Give each host a key afterwards (a saved key holds the user name).

Message What it means
“That password does not open this file.” The file is sealed with another password. Ask whoever sent it
“This file is not a host shared from ZestSSH.” The file is something else. Ask for the .zest file again
“This file is not for: ZestSSH host file”, “Looks like a ZestSSH backup. Import it?” Import it restores it as a backup (see Encrypted backups)

See Import hosts from a cloud for what each provider needs and what its errors mean.