I am trying to use Cygwin to clone from our company Git server. However, Cygwin uses the external Git bash, which is installed on my machine. This leads to compatibility problems. I have a key in C:\Users\user.ssh and also separate SSH keys in /home/user/.ssh in Cygwin. However, adding verbosity to ssh, I see this,
debug1: identity file /c/cygwin/home/user/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
Now, Cygwin maps the C drive to /cygdrive/c, so this fails. Further, creating a softlink ln -s /c /cygdrive/c gives the same result. Anyone who knows how I can reconfigure either Cygwin or ssh to handle this?
BR
Patrik
EDIT:
I obviously have the same problem with all other SSH files, like keys and such.
EDIT2:
I have tried to mess around with certain variables in the ssh client used by Git. After adding and then removing the propery UserKnownHostsFile, things suddenly started to work. I have no idea how it started to work again, but the behavior is extremely odd.