Git user for ssh access from satis

Hello,

I run GitLab on server A and Satis (composer) on server B.

I’m trying to access GitLab from server B by adding a repository in Satis configuration.
Unfortunately I need to provide a password for git@gitlab.xxx.

I’ve created a key on the Satis server and pasted the public key on the GitLab server in authorized_hosts but it doesn’t work.

Can someone explain me how to achieve this please?

Thank you

Up!

I’m still facing the issue :frowning:

Did you manage to resolve this issue? If so, I would be very interested in the solution.

Add the private key on the server where Satis runs:

$ nano ~/.ssh/config
IdentityFile ~/.ssh/gitlab

Make sure the permissions are correct on the private key file (0600).

Create a user and assign it to your projects. Give him the corresponding public key in his settings.

And you should be good to go.