summaryrefslogtreecommitdiff
path: root/doc/ssh
diff options
context:
space:
mode:
authorPeter Willis <peterwwillis@gmail.com>2018-08-04 02:44:52 +0000
committerRémy Coutable <remy@rymai.me>2018-08-29 17:35:34 +0200
commit7a57e8f3688a5b5d97b4d7f3e888c31f75b71d3d (patch)
treeb6088397a7cde5113c4256a444d5b9f8fbfbedd7 /doc/ssh
parent3c5da78cff204ee45a3fd0fa85771f394ddc9e2e (diff)
downloadgitlab-ce-7a57e8f3688a5b5d97b4d7f3e888c31f75b71d3d.tar.gz
Update with secure password encryption methods
By default ssh-keygen uses an insecure password encryption method on the ssh key. This change will add options to better protect the key. See this page for more detail: https://latacora.singles/2018/08/03/the-default-openssh.html Even if the user does not set a password, using the `-o` option needs to become the new standard way to run `ssh-keygen`, since the default behavior is insecure. Your help in establishing this option will be greatly appreciated and will help improve overall security for your users and ssh users in general. Originally submitted at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6796. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'doc/ssh')
-rw-r--r--doc/ssh/README.md26
1 files changed, 15 insertions, 11 deletions
diff --git a/doc/ssh/README.md b/doc/ssh/README.md
index 63f0a654fcf..5db042326f3 100644
--- a/doc/ssh/README.md
+++ b/doc/ssh/README.md
@@ -48,9 +48,11 @@ Note that Public SSH key may also be named as follows:
**Git Bash on Windows / GNU/Linux / macOS:**
```bash
- ssh-keygen -t rsa -C "your.email@example.com" -b 4096
+ ssh-keygen -o -t rsa -C "your.email@example.com" -b 4096
```
+ (Note: the `-o` option was introduced in 2014; if this command does not work for you, simply remove the `-o` option and try again)
+
**Windows:**
Alternatively on Windows you can download
@@ -75,7 +77,9 @@ Note that Public SSH key may also be named as follows:
NOTE: **Note:**
If you want to change the password of your SSH key pair, you can use
- `ssh-keygen -p <keyname>`.
+ `ssh-keygen -p -o -f <keyname>`.
+ The `-o` option was added in 2014, so if this command does not work for you,
+ simply remove the `-o` option and try again.
## Adding a SSH key to your GitLab account
@@ -191,15 +195,15 @@ project.
### Global shared deploy keys
-Global Shared Deploy keys allow read-only or read-write (if enabled) access to
+Global Shared Deploy keys allow read-only or read-write (if enabled) access to
be configured on any repository in the entire GitLab installation.
This is really useful for integrating repositories to secured, shared Continuous
-Integration (CI) services or other shared services.
-GitLab administrators can set up the Global Shared Deploy key in GitLab and
+Integration (CI) services or other shared services.
+GitLab administrators can set up the Global Shared Deploy key in GitLab and
add the private key to any shared systems. Individual repositories opt into
exposing their repository using these keys when a project maintainers (or higher)
-authorizes a Global Shared Deploy key to be used with their project.
+authorizes a Global Shared Deploy key to be used with their project.
Global Shared Keys can provide greater security compared to Per-Project Deploy
Keys since an administrator of the target integrated system is the only one
@@ -211,13 +215,13 @@ the primary way for project maintainers and owners to identify the correct Globa
Deploy key to add. For instance, if the key gives access to a SaaS CI instance,
use the name of that service in the key name if that is all it is used for.
When creating Global Shared Deploy keys, give some thought to the granularity
-of keys - they could be of very narrow usage such as just a specific service or
-of broader usage for something like "Anywhere you need to give read access to
+of keys - they could be of very narrow usage such as just a specific service or
+of broader usage for something like "Anywhere you need to give read access to
your repository".
-Once a GitLab administrator adds the Global Deployment key, project maintainers
-and owners can add it in project's **Settings > Repository** section by expanding the
-**Deploy Key** section and clicking **Enable** next to the appropriate key listed
+Once a GitLab administrator adds the Global Deployment key, project maintainers
+and owners can add it in project's **Settings > Repository** section by expanding the
+**Deploy Key** section and clicking **Enable** next to the appropriate key listed
under **Public deploy keys available to any project**.
NOTE: **Note:**