我想设置我的生成服务器(Windows 2008机器)来构建从GitHub企业我的项目,但我正在逐渐Permission Denined (Public Key)
当我尝试克隆一个回购协议。我已经生成了ssh密钥并将其添加到github配置文件中。无法克隆的git回购
这是我尝试测试ssh连接并克隆回购时的情况。
D:>ssh -T [email protected]
Hi my_user! You've successfully authenticated, but GitHub does not provide shell access.
D:\>git clone [email protected]:myOrg/leaf.git
Cloning into 'leaf'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我试过这两个git bash和Windows命令提示符。
请让我知道是否有任何我想念或如果您需要任何更多的信息。
您可能需要指定IdentityFile在〜/ .ssh/config中。 – jangler
专注于一个环境,windows命令提示符与git bash环境不一样。你说你把你的密钥添加到github配置文件中,但是你表明你正在使用github企业版。你确定这两项服务一起沟通,知道你已经提供了你的ssh密钥给一个,但不是另一个?您需要提供您的公钥到git.company.com声明它需要的地方。我冒昧地说,你需要问你的服务提供商(在company.com上)而不是SO来寻求帮助。 – vgoff