How to add ssh key in gitlab?

Here is what my panel looks like:

enter image description here

Not sure where to add the SSH key. Does anyone have an idea?

+7
source share
4 answers
  • You need to log in. Green button at the top right.
  • Click "Profile Settings" on the left menu.
  • Click SSH Keys and follow the instructions on the page.
+8
source

Just follow the official Create and Add SSH keys guides.

+2
source

Go to https://gitlab.com/profile/keys .

If you are a new user, a banner will be displayed at the top of each page of the project.

You will not be able to pull or push the project code via SSH until you add the SSH key to your profile

However, you can reject this warning.

+1
source

First, you need to make an open terminal after this type

mkdir -p ~/.ssh echo public_key_string >> ~/.ssh/authorized_keys chmod -R go= ~/.ssh chown -R shabeer:shabeer ~/.ssh ssh-keygen or ssh-keygen -t ed25519 -C " mail@example.com " xclip -sel clip < ~/.ssh/id_ed25519.pub ~/.ssh/gitlab_rsa.pub 

at this time you can see your key and copy it, after that go to the Gitlab settings and select SSH Keys, you will see that there is an option to add this copied key

0
source

Source: https://habr.com/ru/post/1244767/


All Articles