【发布时间】:2021-07-04 06:53:33
【问题描述】:
我在 Windows 中使用 git bash 将 ssh 密钥存储在 ssh 代理中并遇到此错误。
$ ssh-add ~/.ssh/id_rsa
/c/Users/abhis/.ssh/id_rsa: No such file or directory
然后我删除了 .ssh/id_rsa 并用密钥文件的名称保存了它。它奏效了。
$ ssh-add ~/[myfilename]
Identity added: [My Folder name] (email id)
为什么会这样。
【问题讨论】:
-
这是什么意思:*然后我删除了 .ssh/id_rsa 并用密钥文件的名称保存。 * 你能改写一下以明确你的意图吗?
标签: bash git github ssh gitlab-ci