- 在任意目录右键,选择Git Bash
- 输入
ssh-keygen -t rsa -C "[email protected]"
(将邮箱替换为你自己的地址) - 当提示“输入要保存密钥的文件”,然后按Enter键,接受默认文件位置。
- 打开本地.ssh文件夹,打开id_rsa,复制密钥,粘贴在GitHub上即可。
- 具体粘贴位置:1.打开GitHub 头像下的settings 2.点击左侧ssh,新建一个ssh,即可。
如何生成新的SSH密钥并将其添加到GitHub上ssh-agent中
猜你喜欢
转载自blog.csdn.net/sunshine_lyn/article/details/83116138
今日推荐
周排行