给个人Github账户添加SSH&GPG Key

https://github.com/settings/keys

https://docs.github.com/en/github/authenticating-to-github/generating-a-new-gpg-key

ssh keygen:
$ ssh-keygen -t rsa -C "xx@qq.com"  #你的邮箱地址

生成的ssh key路径:C:Usersyourdomain.sshid_rsa.pub


GPG keygen:
$ gpg --gen-key

或者:

$ gpg --full-generate-key

 

 

原文地址:https://www.cnblogs.com/bluestorm/p/14649870.html