解决Could not read from remote repository问题,为GitHub账号添加SSH Keys。图片案例

今天在用git指令安装cat时,出现了Could not read from remote repository错误
git clone git@github.com:dianping/cat.git
通过百度解决了这个问题,只是网上都是文字描述不是很直观
步骤一:
去github注册一个账号
https://github.com/join?source=header-home
步骤二:
用注册的邮箱生成一个SSH KEY
然后用vim打开该文件,id_rsa.pub文件内的内容,粘帖到github帐号管理的添加SSH key界面中。
步骤三:
进入github的setting菜单
步骤四:
测试
ssh -T [email protected]
 
 
[root@hadoopNode1 home]# ssh -T [email protected]
Hi biaohao1990! You've successfully authenticated, but GitHub does not provide shell access.


 
 
发布了20 篇原创文章 · 获赞 23 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/hdu09075340/article/details/71423920