Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
dfbe144e
Commit
dfbe144e
authored
May 29, 2019
by
Evan Read
Committed by
Achilleas Pipinellis
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor GitLab basics ssh keys docs
Ensures we give instructions for how to create ssh keys in a single place only.
parent
11f11102
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
25 deletions
+26
-25
doc/gitlab-basics/README.md
doc/gitlab-basics/README.md
+1
-1
doc/gitlab-basics/create-your-ssh-keys.md
doc/gitlab-basics/create-your-ssh-keys.md
+15
-15
doc/gitlab-basics/img/profile_settings_ssh_keys_single_key.png
...itlab-basics/img/profile_settings_ssh_keys_single_key.png
+0
-0
doc/ssh/README.md
doc/ssh/README.md
+10
-9
No files found.
doc/gitlab-basics/README.md
View file @
dfbe144e
...
@@ -15,7 +15,7 @@ This documentation is split into the following groups:
...
@@ -15,7 +15,7 @@ This documentation is split into the following groups:
The following are guides to basic GitLab functionality:
The following are guides to basic GitLab functionality:
-
[
Create and add your SSH
Keys
](
create-your-ssh-keys.md
)
, for enabling Git over SSH.
-
[
Create and add your SSH
public key
](
create-your-ssh-keys.md
)
, for enabling Git over SSH.
-
[
Create a project
](
create-project.md
)
, to start using GitLab.
-
[
Create a project
](
create-project.md
)
, to start using GitLab.
-
[
Create a group
](
../user/group/index.md#create-a-new-group
)
, to combine and administer projects together.
-
[
Create a group
](
../user/group/index.md#create-a-new-group
)
, to combine and administer projects together.
-
[
Create a branch
](
create-branch.md
)
, to make changes to files stored in a project's repository.
-
[
Create a branch
](
create-branch.md
)
, to make changes to files stored in a project's repository.
...
...
doc/gitlab-basics/create-your-ssh-keys.md
View file @
dfbe144e
#
How to create your SSH keys
#
Create and add your SSH public key
This topic describes how to
create SSH keys. You do this to use Git over SSH instead of Git over HTTP.
This topic describes how to
:
## Creating your SSH keys
-
Create an SSH key pair to use with GitLab.
-
Add the SSH public key to your GitLab account.
1.
Go to your
[
command line
](
start-using-git.md
)
and follow the
[
instructions
](
../ssh/README.md
)
to generate your SSH key pair.
You do this to use
[
Git over SSH instead of Git over HTTP
](
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
)
.
1.
Log in to GitLab.
1.
In the upper-right corner, click your avatar and select
**Settings**
.
1.
On the
**User Settings**
menu, select
**SSH keys**
.
1.
Paste the
**public**
key generated in the first step in the
**Key**
text field.
1.
Optionally, give it a descriptive title so that you can recognize it in the
event you add multiple keys.
1.
Finally, click the
**Add key**
button to add it to GitLab. You will be able to see
its fingerprint, title, and creation date.
![SSH key single page](img/profile_settings_ssh_keys_single_key.png)
## Creating your SSH key pair
1.
Go to your
[
command line
](
start-using-git.md
)
.
1.
Follow the
[
instructions
](
../ssh/README.md#generating-a-new-ssh-key-pair
)
to generate your SSH key pair.
## Adding your SSH public key to GitLab
To add the SSH public key to GitLab,
see
[
Adding an SSH key to your GitLab account
](
../ssh/README.md#adding-an-ssh-key-to-your-gitlab-account
)
.
NOTE:
**Note:**
NOTE:
**Note:**
Once you add a key, you cannot edit it. If the paste
Once you add a key, you cannot edit it. If the paste
didn't work, you need to remove the offending
key and re-add it.
[
didn't work
](
../ssh/README.md#testing-that-everything-is-set-up-correctly
)
, you need to remove the
key and re-add it.
doc/gitlab-basics/img/profile_settings_ssh_keys_single_key.png
deleted
100644 → 0
View file @
11f11102
10.3 KB
doc/ssh/README.md
View file @
dfbe144e
...
@@ -55,7 +55,7 @@ As an admin, you can restrict
...
@@ -55,7 +55,7 @@ As an admin, you can restrict
By default, all keys are permitted, which is also the case for
By default, all keys are permitted, which is also the case for
[
GitLab.com
](
../user/gitlab_com/index.md#ssh-host-keys-fingerprints
)
.
[
GitLab.com
](
../user/gitlab_com/index.md#ssh-host-keys-fingerprints
)
.
## ED25519 SSH keys
##
#
ED25519 SSH keys
Following
[
best practices
](
https://linux-audit.com/using-ed25519-openssh-keys-instead-of-dsa-rsa-ecdsa/
)
,
Following
[
best practices
](
https://linux-audit.com/using-ed25519-openssh-keys-instead-of-dsa-rsa-ecdsa/
)
,
you should always favor
[
ED25519
](
https://ed25519.cr.yp.to/
)
SSH keys, since they
you should always favor
[
ED25519
](
https://ed25519.cr.yp.to/
)
SSH keys, since they
...
@@ -65,7 +65,7 @@ They were introduced in OpenSSH 6.5, so any modern OS should include the
...
@@ -65,7 +65,7 @@ They were introduced in OpenSSH 6.5, so any modern OS should include the
option to create them. If for any reason your OS or the GitLab instance you
option to create them. If for any reason your OS or the GitLab instance you
interact with doesn't support this, you can fallback to RSA.
interact with doesn't support this, you can fallback to RSA.
## RSA SSH keys
##
#
RSA SSH keys
RSA keys are the most common ones and therefore the most compatible with
RSA keys are the most common ones and therefore the most compatible with
servers that may have an old OpenSSH version. Use them if the GitLab server
servers that may have an old OpenSSH version. Use them if the GitLab server
...
@@ -166,12 +166,13 @@ Now, it's time to add the newly created public key to your GitLab account.
...
@@ -166,12 +166,13 @@ Now, it's time to add the newly created public key to your GitLab account.
NOTE: **Note:**
NOTE: **Note:**
If you opted to create an RSA key, the name might differ.
If you opted to create an RSA key, the name might differ.
1.
Add your public SSH key to your GitLab account by clicking your avatar
1.
Add your
**public**
SSH key to your GitLab account by:
in the upper right corner and selecting
**Settings**
. From there on,
1.
Clicking your avatar in the upper right corner and selecting
**Settings**
.
navigate to
**SSH Keys**
and paste your public key in the "Key" section.
1.
Navigating to
**SSH Keys**
and pasting your
**public**
key in the
**Key**
field. If you:
If you created the key with a comment, this will appear under "Title".
If not, give your key an identifiable title like _Work Laptop_ or
- Created the key with a comment, this will appear in the **Title** field.
_Home Workstation_, and click
**Add key**
.
- Created the key without a comment, give your key an identifiable title like _Work Laptop_ or _Home Workstation_.
1.
Click the
**Add key**
button.
NOTE: **Note:**
NOTE: **Note:**
If you manually copied your public SSH key make sure you copied the entire
If you manually copied your public SSH key make sure you copied the entire
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment