I'm getting "git@gitlab.aicrowd.com: Permission denied (publickey)"

I’ve followed the instructions to set-up the environment but can’t seem to get past “git push aicrowd master”. I can ‘ssh git@gitlab.com’ but not ‘ssh git@gitlab.aicrowd.com’. I’m getting error

"git@gitlab.aicrowd.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists."

Can someone please guide me what may be wrong and how to proceed?

Did you successfully add an SSH key to your account, as described here?
https://docs.gitlab.com/ee/ssh/README.html#adding-an-ssh-key-to-your-gitlab-account

yes, I was to able to add ssh key which is why “ssh git@gitlab.com” works.

Oh, you need to add the key to gitlab.aicrowd.com, not to gitlab.com! gitlab.aicrowd.com is our own instance of Gitlab.

So, in the instructions, you should replace “gitlab.com” with “gitlab.aicrowd.com”.

Thanks, It is working now.

Great! I’ll edit the documentation to clarify this point.

1 Like