git配置SSH
git配置SSH
1.安装git
2.右键桌面 点击Git Bash Here
3.设置用户名以及账号(这里随便写只是一个用户信息)
git config --global user.name “Xuxing”
git config --global user.email “[email protected]”
4.使用命令生成ssh秘钥
ssh-****** -t rsa -C “[email protected]”(会出提示,没有特殊设置的话直接三次回车)
5.查看秘钥 cat ~/.ssh/id_rsa.pub
6.来到码云或者github设置公钥
7.测试一下是否成功 ssh -T [email protected] (如果弹出提示 是否以后用这个秘钥 请输入yes回车)