Git via SSH uses SSH pipe output verbatim. If this output contains any false data that is not related to git, then the git command cannot parse this and abort the message with an unclear error message. This can happen if you have a script user that displays data when connected, for example, or if something generates an error message not understood by git.
You will notice that "Unab" looks like the beginning of "Impossible", presumably an error message intended for a person, not git, really.
What happens with the next command?
ssh gregory@hostname git-upload-pack '/path_to_your_repo'
In theory, you should get an error message starting with "Impossible." For example, "Could not find git -upload-pack." In this case, the fix would be to add git -upload-pack to your path!
Balinares
source share