微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

10.公钥,私钥的生成

输入命令:ssh-keygen -t rsa,一路enter

[root@VM-4-8-centos git]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
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:GroNNcshlP+ydiQlig0LuhZ1jy3YRG+ufV7hmtdU0zs root@VM-4-8-centos
The key's randomart image is:
+---[RSA 2048]----+
|                 |
|     o           |
|    + .         .|
|. .o +.o.      o.|
|...=*.%oS  .  . o|
|..o.oO.@. . .. E |
| .. o Oo.  oo   .|
|..   =.+..+. .   |
|.   ..o.o+.      |
+----[SHA256]-----+
[root@VM-4-8-centos git]# 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐