Could not open a connection to your authentication agent Git Bash, Msysgit

“Could not open a connection to your authentication agent”

I got this error when trying to set up a passphrase less connection to my git server.

After a couple of hours troubleshooting this issue, i then realized that it was due to the fact that I had github for windows installed as well as msysgit.

For some reasons they were interfering with each other. I ended up deleting github for windows and every started to work.

Useful Websites
https://help.github.com/articles/working-with-ssh-key-passphrases