过去2小时我一直在努力。
我使用 xp-dev 作为 git 存储库提供程序(因为我已经付款并且那里有 svn 存储库)
我已经给了 xp-dev 我的公钥。
但是当克隆我的仓库时,我被拒绝了。
"C:\Program Files (x86)\Git\bin\git.exe" clone -v --recurse-submodules --progress "ssh://xp-dev.com/repogit" "c:/ProjetPerso/repogit"
Cloning into 'c:/ProjetPerso/repogit'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Done
根据我从各种博客中了解到的情况,git 扩展应该要求我加载我的私钥,但事实并非如此。
我尝试启动 putty 身份验证客户端(即使我选择 openSSH)并在其中加载我的私钥,但它没有任何改变。
有任何想法吗?
Thanks.
我遇到这个问题是因为我使用 ssh-keygen 生成了 SSH 密钥,并尝试将其与仅理解 OpenSSH 密钥的 GitExtensions 一起使用。
你需要做的是,来自 GitExtensions:
- 工具 > Putty > 生成或导入密钥(打开新窗口)
- 转换 > 导入密钥
- 导入您的私钥
- 保存私钥
- 输入文件名,例如
mykey.ppk
您现在应该能够在 GitExtensions 中使用这个新的 .ppk 文件!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)