$ ssh-keygen -t rsa -C "mw" -f ~/.ssh/gitee_id_rsa
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/NINGMEI/.ssh/gitee_id_rsa.
Your public key has been saved in /c/Users/NINGMEI/.ssh/gitee_id_rsa.pub.
The key fingerprint is:
SHA256:BSptyjUpG+NeLDj2S5LP1QLJELpLkk6Ihob37uGek/I mw
The key's randomart image is:
+---[RSA 2048]----+
| . . |
| . . . o . |
|. . = B . |
|=o * % . . |
|O== X o S |
|B+ * + . |
|..o *.o . |
| .Bo= . |
| =E. |
+----[SHA256]-----+
$ ssh -T -i ~/.ssh/gitee_id_rsa git@gitee.com
The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no)? yes
輸入 yes
Warning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list of known hosts.
Hi xxxxx! You've successfully authenticated, but GITEE.COM does not provide shell access.