Git用于Windows的SSH客户端和.ssh / config文件的错误路径 [英] Git SSH client for windows and wrong path for .ssh/config file

查看:1653
本文介绍了Git用于Windows的SSH客户端和.ssh / config文件的错误路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了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 一切正常。 / p>

我使用Process Monitor并发现SSH试图找到 \\\\.ssh\config 这里 C:\Windows\CSC\v2.0.6\\\
amespace\.ssh



<为什么?



我如何强制它使用普通路径? %HOMEPATH%\.ssh\config

解决方案

I发现windows msygit port store ssh config here < installPath> \Git\etc\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:\users\tomas\.ssh\config git@myrepo.com everything is OK.

I used Process Monitor and found that SSH is trying to find \\\\.ssh\config here C:\Windows\CSC\v2.0.6\namespace\.ssh.

Why?

How I can force it to use normal path? %HOMEPATH%\.ssh\config?

解决方案

I found that windows msygit port store ssh config here <installPath>\Git\etc\ssh\ssh_config

这篇关于Git用于Windows的SSH客户端和.ssh / config文件的错误路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆