Linux的生成.ssh公私钥

ssh-keygen -t rsa
ssh-keygen -t rsa -C yezhou@appblog.cn

经过三次回车,生成.ssh文件夹,可以看到两个文件(id_rsaid_rsa.pub

# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase): Jenkins
Enter same passphrase again: Jenkins
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:65FmI4U3LkNfhXfchHz7p+v7Er9qZGe3tUTm50Mpnn8 root@appblog-cn
The key's randomart image is:
+---[RSA 2048]----+
|             . ..|
|           . .oo.|
|          . o o.o|
|       .   o . + |
|      o S .   + o|
|     . = =   +.B*|
|      + X   + B=B|
|       B o   +o+E|
|        .   .o*B=|
+----[SHA256]-----+

id_rsa是私钥
id_rsa.pub是公钥

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/25/linux-generate-ssh-public-and-private-keys/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Linux的生成.ssh公私钥
ssh-keygen -t rsa ssh-keygen -t rsa -C yezhou@appblog.cn 经过三次回车,生成.ssh文件夹,可以看到两个文件(id_rsa和id_rsa.pub) # ssh-keygen -t rsa G……
<<上一篇
下一篇>>
文章目录
关闭
目 录