【发布时间】:2012-03-19 19:12:19
【问题描述】:
我安装了 Git-1.7.9-preview20120201.exe,当我尝试通过 SSH 访问我的存储库时失败了。
我调查发现,如果我运行 SSH -T git@myrepo.com,SSH 不会加载定义自定义端口的 ~/.ssh/config。
当我尝试SSH -F c:\users\tomas\.ssh\config git@myrepo.com 时,一切正常。
我使用 Process Monitor 发现 SSH 试图在此处找到 \\\\.ssh\config C:\Windows\CSC\v2.0.6\namespace\.ssh。
为什么?
如何强制它使用正常路径? %HOMEPATH%\.ssh\config?
【问题讨论】: