denied git permission_Git使用之Permission Denied问题解决[2153-Noblog]
今天碰到了Git的Permission Denied问题。
在安装好git之后,我们一般会配置用户名和邮箱
git config --global user.name "zengjinlong"
#--global表明本机的所有git仓库均使用该配置
git config --global user.email "zengjinlong@xunlei.com"
但是当我们克隆一个库的时候,发现不论你怎么输入密码都是说Permission Denied。
其实,这是你没有生成公钥
找到这个页面:
SSH Keys
SSH key allows you to establish a secure connection between your
computer and GitLab
Before generating an SSH key, check if your system already has
one by running cat ~/.ssh/id_rsa.pub If your see a long string
starting with ssh-rsa or ssh-dsa, you can skip the ssh-keygen
step.
To generate a new SSH key just open your terminal and use code
below. The ssh-keygen command prompts you for a location and
filename to store the key pair and for a password. When prompted
for the location and filename you can press enter to use the
default.
It is a best practice to use a password for an SSH key but it is
not required and you can skip creating a password by pressing
enter. Note that the password you choose here can't be altered or
retrieved.
ssh-keygen -t rsa -C
"$your_email"
Use the code below to show your public key.
cat
~/.ssh/id_rsa.pub
Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab
in your user profile. Please copy the complete key starting with
ssh- and ending with your username and host.
很简单,就是用你的邮箱生成一个公钥,然后加入到你的代码管理网站中。然后在如下页面中加入SSH Key到项目中。
My SSH keys
SSH keys allow you to establish a secure connection between your
computer and GitLab
Before you can add an SSH key you need togenerate it
然后再git clone 一次,发现可以了。好了。这个问题解决。
denied git permission_Git使用之Permission Denied问题解决[2153-Noblog]相关推荐
- 电脑重装系统之后git pull报错 Permission denied (publickey)
今天我重装了系统,之后使用git pull报如下的错误消息: git@github.xxx.corp: Permission denied (publickey). fatal: Could not ...
- 记一次拉去代码失败的解决过程Permission denied, please try again. git@code.odrcloud.cn: Permission denied
问题描述: 今天想要从git上拉一份新的代码,首先使用idea拉去,失败报错没有权限,如下图: Cloning into 'xxx'... Permission denied, please try ...
- Coding git@e.coding.net: Permission denied (publickey)
问题描述 使用coding添加公钥后,使用如下命令出现git@e.coding.net: Permission denied (publickey)错误 解决办法 1.ssh-agent bash 2 ...
- unable to write file .git/objects/8a/5a043a43c0dad68ceb65f5a7bd9f7e7a70078b: Permission denied
文章目录 1.不能写文件 2.不能创建index.lock 3.不能锁定ref 1.不能写文件 unable to write file .git/objects/8a/5a043a43c0dad68 ...
- linux open: permission denied,Linux运行文件出现“Permission denied”解决办法
一.Permission denied 是指什么? Permission denied 翻译过来的意思是:权限被拒绝:相信大家都知道,文件权限是读(r).写(w).执行(x): 二.为什么会出现&qu ...
- 【转】git客户端使用git clone git@github.com:xxx.git下载git代码报错Permission denied (publickey).
原文:https://blog.csdn.net/isunnyvinson/article/details/52598863 使用ssh key这种方式进行clone ,pull github上面的项 ...
- denied git permission_git使用中遇到的Permission to xxx denied to xxx问题如何解决
我遇到的问题如下: permission.png 看样子是什么权限的问题,记得之前我参与了别人的项目,然后把我的公钥给了他,估计是我的公钥和他的电脑绑定了.具体的我也不是很清楚,不多说,接下来解决问题 ...
- 【git生成私钥】git@gitlab.dfc.com: Permission denied (publickey).问题解决
[前言]尤其是针对你在家或者在公司办公的切换时候,总是会出现拉取代码这个现象: 代码也拉不下来,这个时候切记不要急,直接三步解决你的烦恼: 1.删除原有公钥 登录gitlab网址,个人中心-setti ...
- 关于使用git clone时提示Permission denied (publickey)的解决方法
使用的git版本需在2.32及以下,这时其中一种解决方法,其他方法可追寻网上其他答案.
最新文章
- SwiftSuspenders 1.6-深入浅出1
- android 浏览器源码分析,从源码出发深入理解 Android Service
- 分享九款构建响应式网站的最佳PHP框架
- 关于在VS2010中学习c++的MFC
- 蓝桥杯java第八届第六题--最大公共子串
- mysql5 7选路径_MySQL 5.5/5.6/5.7及以上版本安装包安装时如何选择安装路径
- Mybatis简介与原理
- 大公司c#amp;.net转型java的原因有哪些?
- icd植入是大手术吗_母狗绝育是大手术吗?手术完需要住院吗?绝育后是不是会变胖?...
- 《iOS 6高级开发手册(第4版)》——2.5节秘诀:Quick Look预览控制器
- 风扇转速/CPU温度监控工具推荐
- python断言_Python断言
- uni-app 二维码生成器分享
- Ubuntu下搭建R语言开发环境
- SKYLAKE平台安装win7步骤(U盘)
- mas机 mysql_移动MAS机开发相关
- 数据库(什么是脏读、不可重复读、幻读)
- 老毛桃唯一官方网站,现已开发出适应现阶段的U盘启动盘制作工具,让老毛桃传承经典,发扬光大。 http://www.laomaotao.net/?A7510
- java性能优化总结_35 个 Java 代码性能优化总结(一)
- 通过pc算法和随机游走来做根因定位,CloudRanger论文解读