M
M
Maxim2016-07-20 12:41:58
git
Maxim, 2016-07-20 12:41:58

How to connect ssh key for GitLab in Ubuntu?

My actions:
1. I check if I have a key **cat ~/.ssh/id_rsa.pub**
2. I generate a key ssh-keygen -t rsa -C "[email protected]" passphrase did not fill (although too, but nothing changed)
3. I looked in the user folder (under which I am in Ubuntu) two files id_rsa and id_rsa.pub were created
4. I copy the key xclip -sel clip < ~/.ssh/id_rsa.pub
5. In gitlab in section ssh paste this key and save.
6. Now in the folder where I pulled the project (git clone) before, I try to make a composer update, but it still asks me to enter a password, only the password is not from my gitlab login, but from [email protected]
How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
exenza, 2016-07-20
@KidsBout

You need to change the url parameter in the .git/config of the project to the url that is in the gitlab for ssh, like [email protected]:username/projectname.git;
or clone the entire project from the repository again using ssh: git clone [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question