Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab-CI with Gitlab setup, self-hosted

I have setup Gitlab in ubuntu server, it's working fine. I access Gitlab by url http://123.456.789.100 and Gitlab login details

 username:[email protected] 
 password:123456

Then I wanted to set Gitlab CI for test the code before it merge. I have done with setting Gitlab CI by using the link. I have done setting up every thing except Runners. While set ssh git@<your gitlab url> in Runner I face error

 ssh [email protected]
 it prompts me for password

[email protected]'s password: I entered password(123456) of gitlab's that I used to enter into gitlab server, then I have this error

Permission denied please try again

But I got Gitlab CI web interface by http://123.456.789.100:8081(I did set Gitlab-ci to listen on 8081 port). Then I entered Gitlab server's username and password as [email protected] and 123456, I got Invalid credentials.

What would be the wrong I made?

like image 725
user3002180 Avatar asked Nov 20 '13 09:11

user3002180


People also ask

How to get started with GitLab CI?

Watch Intro to GitLab CI. This workshop uses the Web IDE to quickly get going with building source code using CI/CD, and run unit tests. Ensure you have runners available to run your jobs. If you don’t have a runner, install GitLab Runner and register a runner for your instance, project, or group.

How do I connect to a GitLab instance from a runner?

The easiest fix for this would be to create an SSH key on the runner in question and then add that SSH key to GitLab. That will allow the runner to access the GitLab instance and clone and repositories you need. For more help getting started, see this page on Configuring GitLab runners.

What is the self-hosted GitLab version of GitLab?

The self-hosted GitLab version is virtually limitless. I am developing both microservices and monoliths, so being flexible with CI/CD is essential for me. In this post, we are going to guide ourselves through the initial setup of GitLab using Docker.

How do I activate a GitLab self-managed plan?

When you purchase a GitLab self-managed plan, an activation code is generated. This activation code is sent to the email address associated with the Customers Portal account. In GitLab, on the top bar, select Menu > Admin . On the left sidebar, select Subscription and paste the activation code in the text field.


1 Answers

When you put git@ in the ssh it’s actually trying to use the git user on the machine that is running GitLab (rather than some GitLab controlled user).

The easiest fix for this would be to create an SSH key on the runner in question and then add that SSH key to GitLab. That will allow the runner to access the GitLab instance and clone and repositories you need.

For more help getting started, see this page on Configuring GitLab runners.

like image 67
olearycrew Avatar answered Sep 20 '22 08:09

olearycrew