Tuesday, 3 January 2017

Strange GIT ssh error

$ git clone -v ssh://my.name@gerrit.company.com:29418/repo_name
Cloning into 'repo_name'...
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

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

The soluation:
Put
unset GIT_SSH
into .profile