This is a follow-up to pull request #362, raised by @timball, which changed the recommended key signature algorithm from RSA to the more secure Ed25519.
There are another couple of topics that we should also update to match.
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
"Monitoring cluster nodes"
nagiosuser@nagios:~$ ssh-keygen -t rsa -b 4096
to:
nagiosuser@nagios:~$ ssh-keygen -t ed25519
Generating public/private rsa key pair.
to:
Generating public/private ed25519 key pair.
{% note %}
**Note:** If you're using a distribution of Linux that doesn't support the Ed25519 algorithm, use the command:
```shell
nagiosuser@nagios:~$ ssh-keygen -t rsa -b 4096
```
{% endnote %}
Note that the blank lines in the above (after the opening note tag and before the closing tag) are required.
"Creating a pre-receive hook script"
ssh-keygen -t rsa -b 4096 -f /home/git/.ssh/id_rsa -P '' && \
mv /home/git/.ssh/id_rsa.pub /home/git/.ssh/authorized_keys && \
to:
ssh-keygen -t ed25519 -f /home/git/.ssh/id_ed25519 -P '' && \
mv /home/git/.ssh/id_ed25519.pub /home/git/.ssh/authorized_keys && \
> Step 2 : RUN apk add --no-cache git openssh bash && ssh-keygen -A && sed -i "s/#AuthorizedKeysFile/AuthorizedKeysFile/g" /etc/ssh/sshd_config && adduser git -D -G root -h /home/git -s /bin/bash && passwd -d git && su git -c "mkdir /home/git/.ssh && ssh-keygen -t rsa -b 4096 -f /home/git/.ssh/id_rsa -P ' && mv /home/git/.ssh/id_rsa.pub /home/git/.ssh/authorized_keys && mkdir /home/git/test.git && git --bare init /home/git/test.git"
> ---> Running in e9d79ab3b92c
to:
> Step 2 : RUN apk add --no-cache git openssh bash && ssh-keygen -A && sed -i "s/#AuthorizedKeysFile/AuthorizedKeysFile/g" /etc/ssh/sshd_config && adduser git -D -G root -h /home/git -s /bin/bash && passwd -d git && su git -c "mkdir /home/git/.ssh && ssh-keygen -t ed25519 -f /home/git/.ssh/id_ed25519 -P ' && mv /home/git/.ssh/id_ed25519.pub /home/git/.ssh/authorized_keys && mkdir /home/git/test.git && git --bare init /home/git/test.git"
> ---> Running in e9d79ab3b92c
> Generating public/private rsa key pair.
> Your identification has been saved in /home/git/.ssh/id_rsa.
> Your public key has been saved in /home/git/.ssh/id_rsa.pub.
to:
> Generating public/private ed25519 key pair.
> Your identification has been saved in /home/git/.ssh/id_ed25519.
> Your public key has been saved in /home/git/.ssh/id_ed25519.pub.
$ docker cp data:/home/git/.ssh/id_rsa .
to:
$ docker cp data:/home/git/.ssh/id_ed25519 .
$ GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 52311 -i ../id_rsa" git push -u test main
to:
$ GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 52311 -i ../id_ed25519" git push -u test main
This is a follow-up to pull request #362, raised by @timball, which changed the recommended key signature algorithm from RSA to the more secure Ed25519.
There are another couple of topics that we should also update to match.
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
"Monitoring cluster nodes"
to:
to:
{% note %} **Note:** If you're using a distribution of Linux that doesn't support the Ed25519 algorithm, use the command: ```shell nagiosuser@nagios:~$ ssh-keygen -t rsa -b 4096 ``` {% endnote %}Note that the blank lines in the above (after the opening note tag and before the closing tag) are required.
At the end of step 3, change
ssh-rsa AAAA....tossh-ed25519 AAAA....Change all instances of
id_rsain the rest of the page toid_ed25519"Creating a pre-receive hook script"
to:
to:
to:
to:
to: