`git clone` works on GitHub but not GitLab or BitBucket!

The same command, with the same uploaded key works fine on github. But leads to an “ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory” error on both bitbucket and gitlab.

EDIT UPDATE: the reason was I was running the command below inside an Emacs shell. If you use an msys2 terminal then the command works. But isnt it odd that github works within an emacs shell but gitlab and bitbucket do not?

github session:

$ git clone git@github.com:metaperl/python-oop.git
Cloning into 'python-oop'...
supreme@DESKTOP-UEIEDEC MSYS c:/Users/supreme/Dropbox/A
$

gitlab session

$ git clone git@gitlab.com:metaperl/gridtrader.git
Cloning into 'gridtrader'...
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

bitbucket session

$ git clone git@bitbucket.org:metaperl/gridtrader.git
Cloning into 'gridtrader'...
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
This entry was posted in Hacking. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.