给个人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:\Users\yourdomain\.ssh\id_rsa.pub


GPG keygen:
$ gpg --gen-key

或者:

$ gpg --full-generate-key

 

 

 

 

 

posted @ 2021-04-12 20:26  petercao  阅读(44)  评论(0编辑  收藏  举报