ssh-keygen -t rsa -C "yourEmail"
# ssh-keygen -t rsa -C "jiqing@caomall.net"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jiqing/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/jiqing/.ssh/id_rsa.
Your public key has been saved in /home/jiqing/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ONSoXby13nKWtTJkM8O5yrpwlJQL1OCfO9dIX0wvoCY jiqing@caomall.net
The key's randomart image is:
+---[RSA 2048]----+
| oo |
| o +.. |
| = * . . . |
| + * * + = . |
| . + E = O = .|
| o * B O o |
| . + = @ . |
| o + = o |
| ooo |
+----[SHA256]-----+
![](https://img2018.cnblogs.com/blog/422101/201912/422101-20191224151838439-882918975.png)