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
- Check the port:
ssh -p 7822 ...; in apps, the Port field. - Open the SSH & SFTP tab: the key must show On the server and access must be on.
- Compare fingerprints: on your computer
ssh-keygen -lf ~/.ssh/id_ed25519.pubmust print the sameSHA256:value as the tab. - Name the key explicitly:
ssh -i ~/.ssh/id_ed25519 -p 7822 login@server; in apps, choose the key file again. - On macOS and Linux, the key files must be yours only:
chmod 700 ~/.sshandchmod 600 ~/.ssh/id_ed25519. - 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". - Lost your key or the computer? Remove the key on the tab at once and add a new one.
- Still stuck? Open a support ticket with the time you tried and the message you got (never your private key).
Related articles
- SSH and SFTP on 7x servers What SSH and SFTP are, why the 7x servers only accept SSH keys, and the details you need to connect.
- Add or remove an SSH key Put the public key of your computer on your site, limit it to SFTP or to your own addresses, and remove keys you no longer use.
- Open a support ticket Ask the 7x team for help and follow our answers in the console and by e-mail.