Unanswered
Hi Everyone, My Clearml Agent Fails To Clone The Repository That Is Currently On My Company'S Self Hosted Gitlab Instance, Which We Clone From Via Ssh. I Have Configured The Ssh Key In The Clearml Agent And I Can Successfully Clone Any Repository From It.
I managed to solve the issue by debugging the agent. I found out that despite the None _company.com:1234/our_gitlab/our_repo.git
line I found out that it was actually trying to clone from the url None _company.com:1234/our_gitlab/our_repo.git
. The agent host machine therefore didn't try to use the git
user, but the session user ec2-user
resulting in a permission denied error.
I solved it by adding an entry in the agent's ~/.ssh/config
to force the use of user git
every time it tries to connect to the host where my gitlab instance is served:
Host ourtools.ourcompany.com
User git
Hostname ourtools.ourcompany.com
IdentityFile ~/.ssh/id_ourcompany
116 Views
0
Answers
11 months ago
11 months ago