$ cd ~/.ssh
$ ssh-****** -f myKey
或者
$ ssh-keygen -t rsa -f ~/.ssh/my-ssh-key -C [USERNAME]
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): ( 按enter键即可)
Enter same passphrase again: ( 按enter键即可)
Your identification has been saved in myKey.
Your public key has been saved in myKey.pub.
The key fingerprint is:
SHA256:EW7ow1aaaaaf8mNvk 该邮件地址已受到反垃圾邮件插件保护。要显示它需要在浏览器中启用 JavaScript。
The key's randomart image is:
+---[RSA 2048]----+
|=.o+= o . |
|o+.o+= + . |
|o.o..oo * |
|..o+ +o+ o |
|.oo+ =+S o |
| o. * o. = o |
| ..o = . = |
|. o.. . E |
| . .o. |
+----[SHA256]-----+
# 此时会生成 公钥 myKey.pub 和 私钥 myKey