ssh生成公钥

ssh-keygen -t rsa -C "yourEmail"
# ssh-keygen -t rsa -C "[email protected]"
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 [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|      oo         |
|     o +..       |
|      = * . . .  |
|     + * * + = . |
|    . + E = O = .|
|       o * B O o |
|      . + = @ .  |
|       o + = o   |
|        ooo      |
+----[SHA256]-----+

你可能感兴趣的:(ssh生成公钥)