Hi, I saw two opened issues on the same topic. Each of them has slightly different conditions and error messages. So I decide to report it as a separate issue. On the remote host, counsel-git-grep fails with following message:
fatal: Not a git repository (or any of the parent directories): .git
But I can confirm that git itself is fully operational on this host. magit for example works without any problems.