SSH keys
Generate, import and use a key for public-key login.
Set up a key in Manage configurations… on an SSH or Mosh profile, under Key login.
Add a key (Add a key):
- Generate makes an Ed25519 key in the app.
- Import file picks a key file. Paste lets you paste the key text; the pasted text is cleared after import.
- You can import an OpenSSH Ed25519, ECDSA P-256 or RSA key. A key protected by a passphrase asks for it once, at import.
- Key on this device makes a key that stays in the phone or tablet's secure hardware. See Key on this device.
- Security keys are in YubiKey and security keys.
Use it. Choose the key in the Key login row. Then tap Copy on the Public key row and add that line to ~/.ssh/authorized_keys on the host.
Delete. Deleting a key makes profiles that used it fall back to password login.
If an import fails with "Only OpenSSH-format keys are supported." the file is in an older format. If it says "Use an Ed25519, ECDSA P-256 or RSA key." the key type is not supported. Every import message is explained in SSH key import errors: "Only OpenSSH-format keys are supported".
Background: Key types and formats, Authorized keys and permissions.
See also
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.Key types and formatsEd25519, ECDSA and RSA keys, security keys, and the file formats you might be handed.Authorized keys and permissionsWhere the host stores your public key, the file permissions it insists on, and why a key login can fail.