我已经使用项目界面中的"Click to Deploy"在Google Compute Engine上安装了GitLab.几分钟后部署成功.我可以通过SSH进入实例,并按预期粘贴它.
我也可以使用Web界面登录GitLab,并将SSH密钥添加到我的个人资料中.到现在为止还挺好.但是,当我尝试推送或拉到新的示例存储库时,我收到以下消息:
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.
Run Code Online (Sandbox Code Playgroud)
我删除了我的本地SSH配置,因此它不会干扰.我是否需要设置某种类型的SSH隧道?我错过了什么?
更新:擦除我的本地〜/ .ssh文件夹,并重新生成SSH密钥(我已将其添加到GitLab中的配置文件中)会产生以下错误:
Received disconnect from {GITLAB_IP_ADDRESS}: 2: Too many authentication failures for git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
更新2:似乎GitLab可能已经有了解决方案:运行sudo gitlab-ctl reconfigure.请参见:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#git-ssh-access-stops-working-on-selinux-enabled-systems