我在Windows上使用Git,一週前我設置了我的SSH密鑰。我克隆了我的回購協議,它運行良好。ssh-agent突然「丟失」我的密鑰
然後,今天我試圖讓拉和發生這種情況:
$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我試圖運行一個ssh-add-l
並返回此:
$ ssh-add -l
The agent has no identities.
但是我的密鑰文件都在同一個地方。我前段時間在Mac上遇到過這個問題,但後來我做了另一個鍵,它工作。我能做什麼而不生成另一個SSH密鑰?
你的鑰匙還在HOME嗎? (http://stackoverflow.com/q/20226147/6309) – VonC
@VonC不,它在別的地方,但是當我設置時它是相同的地方 – athosbr99
嘗試並設置'HOME'到那個地方(應該在那裏成爲'.ssh'文件夾),然後從該會話啓動G4W。 – VonC