尝试将Git与Cygwin一起使用时遇到问题.我已经生成并添加了ssh密钥到GitLab服务器,一切都可以正常通过MINGW64(克隆,拉动等),但我想使用Cygwin并发现它不起作用.
虽然我已将生成的密钥的副本放到〜/ user/.ssh文件夹并手动添加密钥,但"ssh-add -l"会将其打印在列表中,但是当我尝试获取存储库(或任何其他服务器)时命令)我得到:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
它看起来像一个bug,但可能我做错了什么.有没有人遇到这个问题?谢谢.
更新:在Cygwin中更新OpenSSH版本后,问题已经消失.