Skip to content

SSH push mirroring support with public-key authentication

It is not uncommon for Git access to be restricted to SSH only, GitLab even allows Admins to restrict Git access protocols to Only SSH. It is impossible to use push mirroring to a Git server that does not allow HTTP/S access.

We should add support for SSH to push mirroring, in the same way as was done for pull mirroring in https://gitlab.com/gitlab-org/gitlab-ee/issues/98

Further details

There are many situations where HTTP access may not be possible for push mirroring, including security and legacy system configurations that cannot easily be changed.

Using SSH push mirroring also has the benefit of only granting write access to the repository, not the entire API scope of project/user that an access token or password would.

This feature has many moving parts. Items here:

Proposal

Following the same workflow as SSH pull mirroring:

  1. Automatically detect or manually enter SSH host keys
  2. Authenticate via password or public key (GitLab will automatically generate a private key and display the public key to be added to the other server)

Links / references

Edited by Nick Thomas