GitHub SSH配置
2017-12-09 本文已影响41人
高巨龙
一、生成密钥对:
1. 命令: ssh-Keygen -t rsa -C "email"(注意大小写
口令保护可以忽略,直接回车)

2.进入密钥对生成的位置:
进入隐藏文件 .ssh ,cat id_rsa.pub 查看公钥

3.进入GitHub网站:
1.选择设置:

2.新建一个key:

3.添加公钥:

4.重新输入密码:

5.完成公钥配置,克隆一个进行测试
第一次连接的时候需要同意配对:
