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 [email protected]
, SSH doesn't load ~/.ssh/config where a custom port is defined.
When I try SSH -F c:\users\tomas\.ssh\config [email protected]
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
?
SSH to GitHub on Windows Simply copy the SSH URL from the GitHub page of the repository you wish to clone, and then provide that SSH link to the Git clone command: PS C:\github\ssh\example> git clone [email protected]:cameronmcnz/java-jakarta-ee.
Configuring the default shell for OpenSSH in Windows To set the default command shell, first confirm that the OpenSSH installation folder is on the system path. For Windows, the default installation folder is %systemdrive%\Windows\System32\openssh.
The ssh program on a host receives its configuration from either the command line or from configuration files ~/. ssh/config and /etc/ssh/ssh_config .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With