[Windows Bash] Git in bash ignores SSH key

When you using Bash for Windows (MinGW, Installed by git), with TotoriseGit installed
Sometime ssh works but git do not pick-up correct SSH keys.
Causing “No supported authentication methods available”

It is because TotoriseGit has taken over some git/ssh command.

To correctly this, the solution is adding this line to your ~/.bashrc

export GIT_SSH=/bin/ssh.exe

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.