Git SSH client for windows and wrong path for .ssh/config file

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, SSH doesn’t load ~/.ssh/config where a custom port is defined.

When I try SSH -F c:\users\tomas\.ssh\config 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.


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

  • msysgit git clone ignores ssh config
  • Git repository not updating
  • Update all git repos in a folder in windows
  • Git bash can't access home directory on fresh machine
  • Git doesn't connect from git bash but works in cmd.exe - 503 from proxy after CONNECT
  • How to merge from upstream branch?
  • Cygwin, Git, win32 error when checking out tag
  • Can I Share a Git Repository on a USB Thumbdrive between Windows and OS X?
  • 2 Solutions collect form web for “Git SSH client for windows and wrong path for .ssh/config file”

    set the HOME environment variable pointing to %USERPROFILE% for ssh to pick it up. This usually seems to be the problem for many unix solutions that run on windows.

    Fast access to set user env variables:

    Start > Type "env" > Select "Environmental variables for your account"

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

    Git Baby is a git and github fan, let's start git clone.