SSH says "Permission denied (publickey)"
git clone or git push over SSH fails with
Permission denied (publickey). The server did not accept any key ssh
offered.
Check that your key is published#
Open https://scaigit.scailabs.ai/console/ → My SSH keys and check that the key is listed. A key published less than a minute ago may not have reached the instance yet; wait a moment and try again.
Check which key ssh offers#
1 | |
If the key you published is not among those offered, tell ssh which key to
use for ScaiGit in ~/.ssh/config:
1 2 3 | |
Check the address#
SSH addresses look like
git@<organisation>.scaigit.scailabs.ai:<owner>/<repository>.git, on the
standard port 22. Copy the address from the repository's page to be sure.
Still denied#
If the greeting from ssh -T names a different user, the key belongs to
another account. If your ScaiKey account was suspended, your ScaiGit access
is suspended as well; ask your administrator.