- en utilisant la commande prévue pour : ssh-keygen
- se mettre dans le compte root
- lancer la commande en choisissant l'algorithme voulu (-t) :
[CODE]ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (/var/root/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/root/.ssh/id_ed25519
Your public key has been saved in /var/root/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:H2klGURxxxxxxxxjJdaD5PSkxxxx/qe/aTrxxxxN7jrI root@mini-1.local
The key's randomart image is:
...
[/CODE]
- les clefs publiques et privées se retrouvent dans:
[CODE]
mini-1:~ root# ls -al /var/root/.ssh/
total 32
drwx------ 6 root wheel 192 Jul 12 15:34 .
drwxr-x--- 7 root wheel 224 May 20 14:52 ..
-rw------- 1 root wheel 411 Jul 12 15:34 id_ed25519
-rw-r--r-- 1 root wheel 99 Jul 12 15:34 id_ed25519.pub
-rw------- 1 root wheel 364 Apr 30 15:54 known_hosts
-rw-r--r-- 1 root wheel 190 Apr 30 15:54 known_hosts.old[/CODE]