Git shows 'You don't have permission to view it'

Suddenly, I can’t access repository by using ssh now.

The configurations are correctly set and followings are correctly done.

  1. ssh-key is correctly set in my account
  2. ssh -T git@address shows “Welcome to GitLab, Anonymous!”
  3. clone by http works
  4. email and user name are correctly set, which are also used in gitlab account.

However, if I tried to push or clone, the git shows:

remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don’t have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

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

I couldn’t understand what happens here and find any related issues.

1 Like