SSH and SFTP SSH or SFTP does not connect

Deutsch

SSH or SFTP does not connect

What "Permission denied (publickey)", a timeout or a changed fingerprint mean, and how to fix them.

Condition

Your SSH or SFTP program says Permission denied (publickey), Connection timed out, Connection refused, Host key verification failed or asks for a password.

Cause

  • Wrong port. The 7x servers use port 7822, not 22.
  • The key is not on the site yet, or it is the wrong key. Each computer has its own key; the tab shows each key's fingerprint.
  • SSH access is off, or the key is limited to SFTP only or to other addresses.
  • A password is asked for. Passwords are not accepted: the program did not find or offer your key.
  • The server's fingerprint changed. Your program remembers an old fingerprint, or you reached another server.

Remedy

  1. Check the port: ssh -p 7822 ...; in apps, the Port field.
  2. Open the SSH & SFTP tab: the key must show On the server and access must be on.
  3. Compare fingerprints: on your computer ssh-keygen -lf ~/.ssh/id_ed25519.pub must print the same SHA256: value as the tab.
  4. Name the key explicitly: ssh -i ~/.ssh/id_ed25519 -p 7822 login@server; in apps, choose the key file again.
  5. On macOS and Linux, the key files must be yours only: chmod 700 ~/.ssh and chmod 600 ~/.ssh/id_ed25519.
  6. A changed fingerprint: compare with the list in SSH and SFTP on 7x servers. Only if it matches, remove the old one with ssh-keygen -R "[db.my.se7enx.com]:7822".
  7. Lost your key or the computer? Remove the key on the tab at once and add a new one.
  8. Still stuck? Open a support ticket with the time you tried and the message you got (never your private key).