我想設置我的生成服務器(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