git报错git@gitlab.com: Permission denied
新PC安装git和Android studio以后尝试拉取代码自己分支的代码会出现下面的错误
23:43 Update failedWarning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the list of known hosts.git@gitlab.com: Permission denied (publickey,keyboard-interactive).Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
出现的原因是SSH key没有配置好:
1.首先输入下面的命令
1)ssh-keygen -t rsa -C "12345@outlook.com"
2)输入回车
3)输入回车
会出现下面的命令:
2.查看.ssh目录下面生成的id_rsa.pub文件
3.去C:/用户目录/.ssh下将公钥添加到gitlab的网站中,即id_rsa.pub文件的内容
4.直接将id_rsa.pub中的内容复制到key中。(title不需要手动填写,如果正确复制的key,titie会自动填上,如果没填上很可能需要手动去掉转行符)
再输入git pull的时候可以拉取到最新的代码了
git报错git@gitlab.com: Permission denied相关推荐
- Ubuntu下Linux系统部署fisco时bash操作报错权限不足(permission denied) failed to run command ‘........‘
Ubuntu下Linux系统部署fisco时bash操作报错权限不足(permission denied) failed to run command '-' 例如这里就指的是fisco-bcos这个 ...
- Jmeter,Linux下执行./jmeter报错【./jmeter:Permission denied】
一.问题描述: 在压测时,执行./jmeter -n -t 报错,提示: ./jmeter: Permission denied[拒绝访问] 二.问题分析: 由于jme ...
- vscode git报错 git warning: redirecting to https://xxx.xxx.xxxx/xxx/xxx.git/
背景:最近从websotrm转到vscode 刚开始两周开发没有问题,后面有两个常用的项目push到远程库或者拉去远程库的更新都会报错: vscode git报错 git warning: redir ...
- linux执行.sh文件时,报错:XXX.sh: Permission denied(没有权限)
linux执行.sh文件时,报错:XXX.sh: Permission denied(没有权限) 解决方法:修改对该文件的权限 例如报错: bash: ./zkServer.sh: Permissio ...
- git报错:remote: [session-474e1980] Access denied fatal: unable to access... 403
报错: 在输入git remote add origin连接远程仓库的时候报错 $ git push --set-upstream origin html remote: [session-474e1 ...
- git报错 git libpng warning: iCCP以及fatal: Authentication failed for ‘https://git.weixin.qq.com‘
git打卡,本来是老哥带着我做项目,纯git新手小白,以后出现问题自己解决了,顺便分享一下自己的经验,防止以后忘记,顺便给新人铺个路~ 我一开始在使用git clone的时候,一共出现了两个错误,到处 ...
- git pull 报错:权限不够 Permission denied (publickey)
一.背景 在git 提交的时候,突然就行不通,一直报错: Permission denied (publickey). fatal: Could not read from remote reposi ...
- git生成SSH秘钥(git报错git@github.com: Permission denied (publickey). Could not read from remote repositor)
事情是这样,公司的电脑本来更新代码,拉取代码是没有任何问题的,昨天下班回家后想着把代码拉下来看看,然后在云效上面看到之前生成的秘钥,有好几个之前设置的秘钥,感觉好像没有用手贱给删掉了,早上来公司想着拉 ...
- Ubuntu解决git报错:remote: [session-6b4cda96] Access denied的方法
1. 问题描述 当我尝试连接本地文件到远程仓库时,输入git push -u origin "master"时报错: remote: [session-6b4cda96] Acce ...
最新文章
- 图像金字塔与resize函数
- 利用JNI技术在Android中调用C++形式的OpenGL ES 2.0函数
- SQL多表连接查询(详细实例)
- linux管理磁盘和文件系统
- 惠普照片打印软件_被看错的打印机?原来打印机还可以这么玩
- Android 分析工具 APKAnalyser
- 20200501:力扣185周赛上
- spark sql常用方法
- [poj] 1236 networks of schools
- 3GPP规范命名规则解读
- uniapp 微信小程序的弹框文字换行
- android简单计时器源码,Android计时器的三种实现方式(Chronometer、Timer、handler)...
- 先试试这一招,再决定是否要撬开拉杆箱的密码锁——巧开密码锁
- 根据银行卡号获取开户行和银行LOGO
- 18121 排排坐看电影
- Android - Bootloader? root原理?Recovery? SuperSU?Magisk?Xposed?ROM包?这都啥玩意?
- C#等语言、反射机制实现简单 智能语音人机交互(2)-- 皓月
- java粒子特效_程序员20分钟搞定粒子效果, 仅仅200行代码
- 详解GMT CST UTC DST PDT PST几个时间概念
- 看了一篇别人的年终总结,感觉对自己的启发挺大的