Fix incorrect OPENSSH_EXPECTED_COMMAND on gitlab:geo:check task
This was my bad. I didn't copy the full command as described here Setting up fast lookup via GitLab Shell in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4173.
$ sudo gitlab-rake gitlab:geo:check
OpenSSH configured to use AuthorizedKeysCommand ... warning
Reason:
OpenSSH configuration file points to a different AuthorizedKeysCommand
Try fixing it:
We were expecting AuthorizedKeysCommand to be: /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-authorized-keys-check %u %k
but instead it is: /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-authorized-keys-check git %u %k
If you made a custom command, make sure it behaves according to GitLab's Documentation
For more information see:
doc/administration/operations/fast_ssh_key_lookup.md