Skip to content
Snippets Groups Projects
Commit 214c6435 authored by Mark HOEBEKE's avatar Mark HOEBEKE
Browse files

Merge branch 'team-collaboration' into 'main'

default ssh key name

See merge request !11
parents a514be5e 3061880d
No related branches found
Tags v2022.1
1 merge request!11default ssh key name
......@@ -37,17 +37,17 @@ The command may ask you for your GitLab username and your password.
## 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:
```
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.
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment