本文介绍了Windows 的 Git SSH 客户端和 .ssh/config 文件的错误路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I installed Git-1.7.9-preview20120201.exe, and when I try to access my repository via SSH it failed.
I investigated and found that if I run SSH -T git@myrepo.com
, SSH doesn't load ~/.ssh/config where a custom port is defined.
When I try SSH -F c:usersomas.sshconfig git@myrepo.com
everything is OK.
I used Process Monitor and found that SSH is trying to find \\.sshconfig
here C:WindowsCSCv2.0.6amespace.ssh
.
Why?
How I can force it to use normal path? %HOMEPATH%.sshconfig
?
解决方案
I found that windows msygit port store ssh config here <installPath>Gitetcsshssh_config
这篇关于Windows 的 Git SSH 客户端和 .ssh/config 文件的错误路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!