Git生成密钥

参考:Git密钥

1.打开Git安装目录:C:\Program Files\Git

2.双击运行git-bash.exe

3.输入命令,查看是否已存在密钥

  cd ~/.ssh

4.输入命令,生成密钥

  ssh-keygen

5.连续回车

6.输入命令,查看密钥

  cat ~/.ssh/id_rsa.pub

7.复制密钥,粘贴至网站SSH keys处,填写网站登录密码即可。

猜你喜欢

转载自www.cnblogs.com/iloveyou-sky/p/9328988.html