创建SSH
- 进入网址gihub—SSH
- 选择Generate new SSH Key
3.找到如下代码
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
邮箱可设置为登录github的邮箱
4.打开cmder或者git bash 输入上述代码
5.
上述目录便是密钥SSH的存放位置,其中后缀.pub为公钥文件,另外一个是私钥文件
(不要给别人看)
6.进入上图目录
cd /c/Users/LYLYL/.ssh/
7.cat 你的公钥 然后复制
cat id_ed25519.pub
8.登录github,打开settings -> SSH and GPG keys ->new ssh key
9.粘贴cat内容,完成创建