美文网首页
Git SSH 配置(码云+Github)

Git SSH 配置(码云+Github)

作者: 米有意思 | 来源:发表于2018-01-31 10:08 被阅读0次

码云配置

1.在linux的命令行下,或者是windows上Git Bash命令行窗口中键入

ssh-keygen -t rsa -C "xxxx@xx.com"

2.一直按回车(Enter),不要输入任何密码之类,生成 ssh key pair

3.ssh-add ~/.ssh/id_rsa
如果出现 Could not open a connection to your authentiacation agent 执行 eval `ssh-agent`
在执行 ssh-add ~/.ssh/rsa成功 ssh-add l就有新加的rsa了

4.cat ~/.ssh/id_rsa.pub(查看)

5.将公钥复制出来

6.进入码云-个人设置-SSH公钥配置,把复制的东西加进去提交 。

相关文章

网友评论

      本文标题:Git SSH 配置(码云+Github)

      本文链接:https://www.haomeiwen.com/subject/ubkkzxtx.html