You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Enter file in which to save the key (/home/nagiosuser/.ssh/id_ed25519):
39
39
> Enter passphrase (empty for no passphrase): <em>leave blank by pressing enter</em>
40
40
> Enter same passphrase again: <em>press enter again</em>
41
-
> Your identification has been saved in /home/nagiosuser/.ssh/id_rsa.
42
-
> Your public key has been saved in /home/nagiosuser/.ssh/id_rsa.pub.
41
+
> Your identification has been saved in /home/nagiosuser/.ssh/id_ed25519.
42
+
> Your public key has been saved in /home/nagiosuser/.ssh/id_ed25519.pub.
43
43
```
44
44
{% danger %}
45
45
46
46
**Security Warning:** An SSH key without a passphrase can pose a security risk if authorized for full access to a host. Limit this key's authorization to a single read-only command.
47
47
48
48
{% enddanger %}
49
-
2. Copy the private key (`id_rsa`) to the `nagios` home folder and set the appropriate ownership.
49
+
{% note %}
50
+
51
+
**Note:** If you're using a distribution of Linux that doesn't support the Ed25519 algorithm, use the command:
52
+
```shell
53
+
nagiosuser@nagios:~$ ssh-keygen -t rsa -b 4096
54
+
```
55
+
56
+
{% endnote %}
57
+
2. Copy the private key (`id_ed25519`) to the `nagios` home folder and set the appropriate ownership.
3. To authorize the public key to run *only* the `ghe-cluster-status -n` command, use a `command=` prefix in the `/data/user/common/authorized_keys` file. From the administrative shell on any node, modify this file to add the public key generated in step 1. For example: `command="/usr/local/bin/ghe-cluster-status -n" ssh-rsa AAAA....`
63
+
3. To authorize the public key to run *only* the `ghe-cluster-status -n` command, use a `command=` prefix in the `/data/user/common/authorized_keys` file. From the administrative shell on any node, modify this file to add the public key generated in step 1. For example: `command="/usr/local/bin/ghe-cluster-status -n" ssh-ed25519 AAAA....`
56
64
57
65
4. Validate and copy the configuration to each node in the cluster by running `ghe-cluster-config-apply` on the node where you modified the `/data/user/common/authorized_keys` file.
> ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
146
146
> Password for git changed by root
147
-
> Generating public/private rsa key pair.
148
-
> Your identification has been saved in /home/git/.ssh/id_rsa.
149
-
> Your public key has been saved in /home/git/.ssh/id_rsa.pub.
147
+
> Generating public/private ed25519 key pair.
148
+
> Your identification has been saved in /home/git/.ssh/id_ed25519.
149
+
> Your public key has been saved in /home/git/.ssh/id_ed25519.pub.
150
150
....truncated output....
151
151
> Initialized empty Git repository in /home/git/test.git/
152
152
> Successfully built dd8610c24f82
@@ -174,7 +174,7 @@ You can test a pre-receive hook script locally before you create or update it on
174
174
9. Copy the generated SSH key from the data container to the local machine:
175
175
176
176
```shell
177
-
$ docker cp data:/home/git/.ssh/id_rsa.
177
+
$ docker cp data:/home/git/.ssh/id_ed25519.
178
178
```
179
179
180
180
10. Modify the remote of a test repository and push to the `test.git` repo within the Docker container. This example uses `git@github.com:octocat/Hello-World.git` but you can use any repo you want. This example assumes your local machine (127.0.0.1) is binding port 52311, but you can use a different IP address if docker is running on a remote machine.
@@ -183,7 +183,7 @@ You can test a pre-receive hook script locally before you create or update it on
0 commit comments