GitLab:我无法推​​送或克隆 repo 协议(protocol),要求提供 Git 密码

标签 git ssh passwords gitlab

我已经用 Bitnami 安装了最新的 GitLab。但我无法将我的更新推送到中央仓库。它总是要求输入 Git 密码。我将它安装在本地服务器上,并将域名作为本地 IP。公钥在/hom/git/.ssh/authorised_keys 列表中更新。它要求 Git 用户密码。请帮帮我。

最佳答案

这很奇怪。你能检查一下你的 SSH 服务器是否配置为使用 authorized_keys 文件吗?

/etc/ssh/sshd_config

PubkeyAuthentication yes

您可以检查 .ssh/authorized_keys 文件的文件权限吗?所有者应该是 git 用户。您之前是否已经安装了 Gitlab 版本?也许 Gitolite 已经安装,您需要为 GitLab 5 使用 gitlab-shell。

关于GitLab:我无法推​​送或克隆 repo 协议(protocol),要求提供 Git 密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15974141/

相关文章:

c - 打印单词的所有变体

java - 禁止 System.in 到 System.out(提示输入密码)

git - 如何将我的远程 git 存储库移动到另一个远程 git 存储库?

php - Composer 更新内存限制

ssh - fail2ban 不禁止 ssh 暴力破解,但正则表达式有效

sockets - 与 Control Master 的共享 SSH 连接不起作用

php - password_verify() 在 php 中不起作用

来自本地文件夹的 git 子模块

git - 带有 VCS 后端的 Wiki?

Xcode/Git 存储库错误 : "Please verify that the working copy is reachable and try again."