运行命令 ssh-keygen -t rsa -C "myemail"
重命名ras文件名称
将新生产的id_rsa.pub中的数据复制到github中
最后在C:\Users\Administrator\.ssh目录下新建一个config文件
文件内容为:
#gitlab
Host gitlab.bdfint.com
HostName gitlab.bdfint.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
#github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa1