linux - keygen
root@test:~# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:r4XHq1HLHm4B69zZ3In3f2Bg8tfJ+lMLWxv1L3XDw9c root@test
The key's randomart image is:
+---[RSA 3072]----+
| |
| |
| |
| . . o .|
| So.+ .+.=|
| .*....+XE|
| oo.O= ==+@|
| oB+o+o=+o|
| oo+ ..+*|
+----[SHA256]-----+
root@test:~#