Para crear una cuenta en gitlab y configurarla correctamente siga los siguientes pasos:
https://gitlab.com/users/sign_up
Como parte de este proceso es necesario la creación de una llave ssh para facilitar el proceso de comunicación con gitlab.com.
ls -al ~/.ssh
Si ya hay llaves, deberían aparecer algunos de los siguientes archivos:
Y puede reutilizar alguna de estas llaves (saltar al paso )
Se debe generar una llave SSH de manera local en la computadora y posteriormente agregarla a la cuenta en Gitlab para habilitarla.
ssh-keygen -t ed25519 -C "your_email@example.com"
Si se está utilizando un sistema que no soporta Ed25519, se puede utilizar "rsa" en lugar de "ed25519"
Esto generará una nueva llave SSH, utilizando el email suministrado como etiqueta:
> Generating public/private ALGORITHM key pair.
> Enter a file in which to save the key (/home/YOU/.ssh/ALGORITHM):[Press enter]
Si ya creó una llave SSH anteriormente, ssh-keygen puede preguntar que ingrese un nuevo nombre. En ese caso se recomienda utilizar un nombre distintivo.
Si desea configurar ssh-agent puede seguir la siguiente guía: ssh-agent
Y finalmente para agregarla a gitlab.com puede seguir los siguientes pasos:
xclip -sel clip < ~/.ssh/id_ed25519.pub
Debe reemplazar "id_ed25519.pub" por el nombre se su llave si este varía.
2. Loggearse en gitlab.com
3. En la barra izquierda, darle click al avatar.
4. Seleccionar "editar perfil"
5. En la barra a la izquierda, selecciónar SSH Keys.
6. In the Key box, paste the contents of your public key. If you manually copied the key, make sure you copy the entire key, which starts with ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519, sk-ecdsa-sha2-nistp256@openssh.com, or sk-ssh-ed25519@openssh.com, and may end with a comment.
8. In the Title box, type a description, like Work Laptop or Home Workstation.
9. (Optional). Select the Usage type of the key. It can be used either for Authentication or Signing or both. Authentication & Signing is the default value.
10. (Optional). Update Expiration date to modify the default expiration date. In:
Guía oficial:
https://docs.gitlab.com/ee/user/ssh.html#add-an-ssh-key-to-your-gitlab-account