Update README to show ed25519 ssh key generation
This commit is contained in:
parent
a38dc72223
commit
17e8d57eb2
28
README.md
28
README.md
|
@ -79,30 +79,30 @@ https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
|
||||||
You can generate a keypair specifically for connecting to github like this:
|
You can generate a keypair specifically for connecting to github like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ssh-keygen -t rsa -b 4096 -C "hpotter@hogwarts.wiz" -f ~/.ssh/github_id_rsa -N ''
|
$ ssh-keygen -t ed25519 -C "hpotter@hogwarts.wiz" -f ~/.ssh/github_id_rsa -N ''
|
||||||
Generating public/private rsa key pair.
|
Generating public/private ed25519 key pair.
|
||||||
Your identification has been saved in /Users/hpotter/.ssh/github_id_rsa.
|
Your identification has been saved in /Users/hpotter/.ssh/github_id_rsa.
|
||||||
Your public key has been saved in /Users/hpotter/.ssh/github_id_rsa.pub.
|
Your public key has been saved in /Users/hpotter/.ssh/github_id_rsa.pub.
|
||||||
The key fingerprint is:
|
The key fingerprint is:
|
||||||
SHA256:w1ZAgf+Ge+R662PU18ASqx8sZYfg9OxKhE/ZFf9zwvE hpotter@hogwarts.wiz
|
SHA256:qBCOybcJkgs1xdNoocYlsZz3jNQhGgOymreQAQRyh0c hpotter@hogwarts.wiz
|
||||||
The key's randomart image is:
|
The key's randomart image is:
|
||||||
+---[RSA 2048]----+
|
+--[ED25519 256]--+
|
||||||
| o+. .. |
|
|Oo*=E+. |
|
||||||
| . .o . .. |
|
|+=.%*o.. |
|
||||||
| . +.* *. .|
|
|o %oo.. |
|
||||||
| .o.= X.+o.|
|
|o@ = + . |
|
||||||
| S* B oo+E|
|
|@o+.. + S |
|
||||||
| ...X = ..+|
|
|o+ooo. |
|
||||||
| B + o |
|
|. .o. |
|
||||||
| . B . |
|
| |
|
||||||
| .*oo |
|
| |
|
||||||
+----[SHA256]-----+
|
+----[SHA256]-----+
|
||||||
```
|
```
|
||||||
|
|
||||||
Some explanation of the arguments used in the above example:
|
Some explanation of the arguments used in the above example:
|
||||||
|
|
||||||
```
|
```
|
||||||
-t rsa Use a key type of RSA
|
-t ed25519 Use a key type of ed25519
|
||||||
|
|
||||||
-C "hpotter@hogwarts.wiz" Provide an identity to associate with the key (default is
|
-C "hpotter@hogwarts.wiz" Provide an identity to associate with the key (default is
|
||||||
user@host in the local environment)
|
user@host in the local environment)
|
||||||
|
|
Loading…
Reference in New Issue