详解码云和github上git生成SSH公钥

首先使用工具

或者window自带命令行工具。mac相同。不用多考虑。

不管是码云还是github都是一样的,都是git的问题

ssh-keygen -t rsa -C "[email protected]"   //这个红字部分是你的码云或者githunb的登录账号!

然后是

Enter passphrase (empty for no passphrase): [Type a passphrase] 

Enter same passphrase again: [Type passphrase again]

这两个都是直接回车

这就生成了。

输入  cat ~/.ssh/id_rsa.pub  查看 如下就成功了,然后复制这个

github到这里

然后

然后

然后

码云是一样,是中文的就不说了

我正好有个本地第一次连接库的截图,有雷同的就参考。

原创文章 112 获赞 173 访问量 4万+

猜你喜欢

转载自blog.csdn.net/weixin_41229588/article/details/90745537