【问题标题】:Gitlab clone project: authentication failedGitlab克隆项目:身份验证失败
【发布时间】:2020-05-04 08:49:55
【问题描述】:

我尝试使用 HTTPS 和 SSH 简单地克隆一个 Gitlab 项目,但它们都不起作用并打印回认证失败消息。

尝试使用 https 地址时:

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 密钥,我得到的消息是:

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.

我能做什么?

【问题讨论】:

  • 你试过git clone git://gitlab.com/project.aa/project.git

标签: gitlab


【解决方案1】:

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

【讨论】:

  • 非常感谢,我不得不修改凭据
  • 我也有同样的问题,但是我在 Linux Ubuntu 下怎么解决?
猜你喜欢
  • 2020-07-03
  • 2016-03-05
  • 2017-08-19
  • 2022-10-17
  • 1970-01-01
  • 1970-01-01
  • 2014-10-14
  • 2021-12-13
  • 2017-02-21
相关资源
最近更新 更多