lwk@qwfys:~$ ssh-keygen -t rsa -b 4096 -C "RSA-4096"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/lwk/.ssh/id_rsa):
Created directory '/home/lwk/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/lwk/.ssh/id_rsa.
Your public key has been saved in /home/lwk/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:x1mF3Tdl0pQHtu9unw2oJ7GdZMoTHdUTm19VbJMmuBM RSA-4096
The key's randomart image is:
+---[RSA 4096]----+
| .o=O%|
| E.+o@%|
| +.++B|
| . =. .o|
| S +... o|
| .o +. . |
| . O... .|
| *.+ o+|
| .+ o=|
+----[SHA256]-----+
lwk@qwfys:~$ ll .ssh
total 16
drwx------ 2 lwk lwk 4096 Sep 10 09:35 ./
drwxr-xr-x 36 lwk lwk 4096 Sep 10 09:35 ../
-rw------- 1 lwk lwk 3247 Sep 10 09:35 id_rsa
-rw-r--r-- 1 lwk lwk 734 Sep 10 09:35 id_rsa.pub
lwk@qwfys:~$
转载于:https://my.oschina.net/qwfys200/blog/2045588