git Bush使用openssl生成私钥和公钥

生成私钥和公钥

$ ssh-keygen # 输入命令后回车。
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): # 保存路径和文件名,保持默认回车,如需修改可在:后输入

Created directory ‘/c/Users/Administrator/.ssh’.
Enter passphrase (empty for no passphrase): # 保持默认回车。
Enter same passphrase again: # 保持默认回车。

Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa. # 私钥文件保存路径。
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub. # 公钥文件保存路径。

The key fingerprint is:
SHA256:… # 省略
The key’s randomart image is:
±–[RSA 2048]----+
| *O+B|
| + B
@B|
| . +oO=O|
| . o *.X+|
| S o O E|
| X.|
| o|
| |
| |
±—[SHA256]-----+

上一篇:腾讯云主机ubuntu18升级openssl 1.1.1l(libcrypto.so.1.1报错处理)


下一篇:openssl - generate PEM format private key and public key, CSR