【发布时间】:2011-09-01 21:27:09
【问题描述】:
所以我已经安装了 msysgit,并从 bash shell 成功运行了 git。
在 bash shell 中,我使用 ssh-keygen 创建了密钥 - 一切正常。
关键文件在我的 %userprofile%\.ssh 文件夹中(来自 bash shell,它是:~/.ssh)。
我能够连接到我的服务器(在我的情况下是 unfuddle)。
接下来,我确实希望能够从 Windows Cmd shell 运行 git。
将c:\msysgit\bin 和c:\msysgit\mingw\bin 添加到搜索路径。
Git 在本地工作得很好:分支、合并、添加、提交、签出……工作得很好。
但是,尝试使用服务器失败,出现:'Permission denied (publickey).'
它看起来像 git,当从命令行执行时会查看尝试分配密钥文件的不同位置,或者导致它失败的其他原因。
【问题讨论】: