Gitlab克隆项目:身份验证失败 [英] Gitlab clone project: authentication failed

查看:287
本文介绍了Gitlab克隆项目:身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图简单地使用HTTPS和SSH克隆一个Gitlab项目,但它们都不起作用并打印出atuhentication失败消息.

I tried to simply clone a Gitlab project jusing both HTTPS and SSH and they both don't work and print back an atuhentication failed message.

尝试使用https地址时:

When trying with https address:

git clone https://gitlab.com/project.aa/project.git

Cloning into 'frontend'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/project.aa/project.git'

使用我的SSH密钥,这就是我收到的消息:

And with my SSH key that's the message I get:

Cloning into 'frontend'...
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

我该怎么办?

推荐答案

尝试注销并使用与克隆存储库相同的凭据登录.如果问题仍然存在:在Windows中,搜索Credential Manager.在其中选择Windows manager.选择您的Gitlab凭据并进行修改.

Try log-out and login with the same credentials that you're trying to use for cloning the repository. If the problem persists: In Windows, Search for Credential Manager. In that choose Windows manager. Select your Gitlab credentials and modify it.

这篇关于Gitlab克隆项目:身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆