- ssh-keygen.exe -t rsa -C "你的github账户邮箱"
-
出现如下提示:
Enter file in which to save the key (C:\Users\Administrator/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
三个全都按“Enter”键
出现提示Your public key has been saved in C:\Users\Administrator/.ssh/id_rsa.pub.
这句话中的地址即公钥具体位置。
目录名为自己实际生成密钥地址
参考:
Adding a new SSH key to your GitHub account - GitHub Docs
git clone出现Permission denied (publickey)解决办法_Tomes_V_White的博客-CSDN博客