ssh生成公钥

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://www.cnblogs.com/jiqing9006/p/12091687.html