Geo: Backport of EE MR Geo: Fix push to secondary over SSH for LFS
Backport of logic from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8044 - Geo: Fix push to secondary over SSH for LFS
Related: https://gitlab.com/gitlab-org/gitlab-ee/issues/8114
Edited by Ash McKenzie