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]-----+

posted @ 2019-12-24 15:19  TBHacker  阅读(1108)  评论(0编辑  收藏  举报