生成一个SSH密钥以供本地访问github
- 访问https://github.com/settings/keys(当然你得先注册一个github账号)
- 点击“New SSH Key”,你也可以参考教程(https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)
- 到Windows CMD 下输入以下命令
//产生一个关联你github账号的密钥文件
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Generating public/private rsa key pair.
//(输入你密钥的位置,默认即可,打回车)
Enter a file in which to save the