How to grant access to the production branch from a customer server?

I need deploy code by fetching the last commit in production branch from customers server.

How can I grand a machine to access a git repo in gitlab. As I see the access management is user-based not ssh key-based (expect for current user)

I hope the following will help you out…!

You can make use of Deploy Keys for a project.


  1. First Generate SSH key on the machine where you want to clone/get the source code.
  2. For a project under settings, go to Deploy Keys
  3. Add the ssh key.

The get the source code and then do actions that are required on source code.