我在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