Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • abims/training/git-for-beginners
1 result
Show changes
Commits on Source (3)
...@@ -37,17 +37,17 @@ The command may ask you for your GitLab username and your password. ...@@ -37,17 +37,17 @@ The command may ask you for your GitLab username and your password.
## Cloning using SSH ## Cloning using SSH
Using SSH to interact with the repository required you to copy an SSH key file to GitLab. If you have no such key, you will have to generate it. Using SSH to interact with the repository required you to copy an SSH key file to GitLab. If you have no such key, **and only if you do not already have one** (otherwise existing files could be replaced, which is not what you want), you will have to generate it.
The command to generate a key looks like: The command to generate a key looks like:
``` ```
ssh-keygen -t ed25519 -f ~/.ssh/ed25519_gitlab ssh-keygen -t ed25519
``` ```
And creates two files: a file with a secret key and a file with a public key. And creates two files: a file with a secret key and a file with a public key.
To display the contents of the file with the public key, use: To display the contents of the file with the public key, use:
``` ```
cat ~/.ssh/ed25519_gitlab.pub cat ~/.ssh/id_ed25519.pub
``` ```
An example of how to generate a key pair and view the public key is given in the following screencast: An example of how to generate a key pair and view the public key is given in the following screencast:
......