按照bitbucket上的教程,我已经配置了ssh-agent,并将我的私钥保存在Windows10上的ssh-agent中。
To start the agent, run the following:
$ eval $(ssh-agent)
Agent pid 9700
Enter ssh-add followed by the path to the private key file:
$ ssh-add ~/.ssh/<private_key_file> 但是在关闭git终端并重新打开它之后,奇怪的事情发生了。
$ ssh-add -l
The agent has no identities.顺便说一下,在这种情况下,仍然需要输入私钥密码。
谁能告诉我发生了什么以及如何解决这个问题。
发布于 2020-11-12 14:38:29
关闭终端可能会关闭ssh-agent。
您应该遵循"Auto-launching ssh-agent on Git for Windows“,以确保在重新打开git bash会话时,.bashrc会自动重新启动ssh-agent。
https://stackoverflow.com/questions/64797522
复制相似问题