7

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?

3
  • 1
    Why are you trying to ssh into the gitlab instance from the runner? Commented Jan 15, 2016 at 22:30
  • As @Suever mentioned before I don't know neither why are you trying to ssh into gitlab from the runner. When registering a new runner, it will ask for the gitlab instance url, then the token and other options. Here is the link to the official documentation docs.gitlab.com/runner/register/index.html#gnulinux Commented Mar 25, 2019 at 2:55
  • I believe it should be gitlab token instead of password. Commented Nov 23, 2019 at 21:59

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.