【发布时间】:2016-09-15 16:45:29
【问题描述】:
我正在尝试使用 SSH 身份验证克隆或推送到我们的 Gitlab 服务器上的空存储库,但每当我尝试时,我都会被要求输入 git 密码(使用 Git Bash):
myname@PC0016 MINGW64 /c/users/myname/dev
$ git clone git@git.repo.local:android/myApp.git
Cloning into 'myApp'...
git@git.repo.local's password:
我已经尝试了我的密码和管理员给我的 Git 密码,但我得到了:
Please make sure you have the correct access rights
and the repository exists.
当我在 Gitlab 中将我的 SSH 密钥添加到项目文件时,为什么需要提供此密码?我错过了什么?谢谢!
【问题讨论】:
-
你的钥匙在哪里?
-
我不确定是密码问题。 Git 提供者必须承认并批准您的公共证书。
-
@Jakuje 我的密钥在 C:\Users\myname\.ssh
-
ssh -Tvvv git@git.repo.local是否要求输入密码?列出您尝试使用的密钥? -
@Jakuje 确实如此,奇怪的是它在 Z: 驱动器中查找...
debug1: key_load_public: No such file or directory debug1: identity file /z/.ssh/id_rsa type -1...我可以将其指向我的 .ssh 文件夹吗?
标签: git bash ssh passwords gitlab