Then click ‘Add key’.īack in the terminal, configure git with your details and the SSH key: git config -global user.name "Your name" If you manually copied the key, make sure you copy the entire key, which starts with ssh-ed25519, and ends with your email address. Then in the GitLab Key box, paste the contents of your public key. From the left sidebar, select 'SSH Keys'.īack in the terminal, copy the contents of your public key: cat ~/.ssh/id_youruser.pub Then in the top right corner, select your avatar and click 'Settings'. Log in to GitLab with the DRE credentials. So, to access the GitLab server, you would use. You can do this by copying the URL of the current workspace and replacing the workspace name with gitlab. Inside the Virtual Desktop, navigate to the GitLab server. ~/.ssh/id_youruser.pub - the public key (to be shared).~/.ssh/id_youruser - the private key (don’t share!).This will generate a pair of SSH keys as files: It will also ask you to specify a passphrase, you can just hit 'Enter' to skip it. Ssh-keygen -t ed25519 -C -f ~/.ssh/id_youruser Replace id_youruser with a username that would identify your individual key.Replace with the email you used to register to the DRE.Start a desktop session on a Linux Virtual Desktop and open a terminal. Setting up GitLab on a Linux Virtual Desktop 1. Because the local GitLab server can only be accessed from workspace Virtual Desktops, the users are not able to send data out of the local GitLab.īefore you can start using GitLab in your Virtual Desktop, you have to set up an SSH key following the instructions detailed below. It allows multiple users to work in parallel within workspace Virtual Desktops on the same repo using Git. Virtual Desktops host a local GitLab server. To allow collaborative development and sharing of code, you also might want to use a cloud-based hosting service like GitLab that lets you manage Git repositories. Git is a version control system used for managing and keeping track of code changes over time. Gitea is now available and you can read more about it here. Gitlab is being replaced by Gitea which offers a more secure multi-user collaborative development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |