1、打开 Git Bash 终端
2、设置用户名
git config --global user.name 'tom'
3、生成公钥
ssh-keygen -t rsa
4、查看公钥
cat ~/.ssh/id_rsa.pub
5、将查看到的公钥添加到不同Git平台
6、验证ssh远程连接git仓库
ssh -T [email protected]
ssh -T [email protected]
1、打开 Git Bash 终端
2、设置用户名
git config --global user.name 'tom'
3、生成公钥
ssh-keygen -t rsa
4、查看公钥
cat ~/.ssh/id_rsa.pub
5、将查看到的公钥添加到不同Git平台
6、验证ssh远程连接git仓库
ssh -T [email protected]
ssh -T [email protected]