Help · Connecting

SSH key problems

A key file ssh refuses, a passphrase it can’t ask for, the public half chosen by mistake, or a key the server doesn’t accept.

Before ssh runs, saferow looks at the key file you chose: whether it is private or public, its type, whether it has a passphrase, and whether ssh will refuse its permissions. The line under Choose… in the SSH settings says what it found.

“ssh refused your key file because other users can read it”

ssh won’t use a private key others can read. Fix the permissions, then Try again:

chmod 600 ~/.ssh/id_ed25519

A passphrase

The wrong file

“The server didn’t accept the key”

The server doesn’t know this key for this user. Choose the key the server knows, or check the SSH user (Change the SSH user). If the key lives in 1Password, unlock 1Password and press Try again: the 1Password ssh agent works as it does in Terminal.

“The server stopped after too many keys were offered”

Your ssh agent offered every key it holds before the right one. Name the key for this host in ~/.ssh/config:

Host db.example.com
      IdentityFile ~/.ssh/id_ed25519
      IdentitiesOnly yes

Still stuck? In saferow, choose Help › Report a Problem…, or write to support. Please leave out passwords, keys and real data.