---
summary: Your key is not on your ScaiGit account yet, or ssh offers a different key.
title: SSH says "Permission denied (publickey)"
path: troubleshooting/ssh-permission-denied
status: published
---

# 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

```bash
ssh -v -T git@<organisation>.scaigit.scailabs.ai 2>&1 | grep -i offering
```

If the key you published is not among those offered, tell ssh which key to
use for ScaiGit in `~/.ssh/config`:

```
Host *.scaigit.scailabs.ai
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
```

## 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.
