search

Home  >  Q&A  >  body text

gitlab - git ssh pulls the code and reports an error, the http method is OK

A project placed on gitlab
When I use the git@... address of the ssh protocol to pull the code, it prompts:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

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

It can be pulled using http protocol,
My ssh public key file has been configured and can be used

Host XXX.com
    HostName XXX.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

The code can be pulled now, but I don’t know what the problem is?

高洛峰高洛峰2793 days ago707

reply all(0)I'll reply

No reply
  • Cancelreply