今天用msysgit  遇到了以下问题:

git push origin master

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

由于这个版本库,一直是用netbean中git来提交,所以一直是工作正常的,

而且,msysgit 之前也安装了,也正常工作,所以,一头雾水。

怀疑了msysgit 的ssh 设置,github的设置,但检查后,都是无错。

最后,在以下文章中,找到了答案

http://www.celticwolf.com/blog/2011/02/08/git-permission-denied-publickey/

简而言之,是版本库的 origin 地址不对,解决方法很简单:

$ git remote rm origin
$ git remote add origin git@github.com:username/project.git

为什么在netbean 中正常使用的库,换到 msysgit 中不正常?

估计是netbean中的git 的设置有关。与msysgit不兼容。

msysgit Permission denied (publickey)相关推荐

  1. 关于GitHub推送时发生Permission denied (publickey)的问题

    今天在学习廖雪峰老师官网的git教程"添加远程库"时发现总是推送失败,下边提示"Permission denied (publickey) 这个问题" 传送门: ...

  2. 由于SSH配置文件的不匹配,导致的Permission denied (publickey)及其解决方法

    由于SSH配置文件的不匹配,导致的Permission denied (publickey)及其解决方法 参考文章: (1)由于SSH配置文件的不匹配,导致的Permission denied (pu ...

  3. git pull 报错:权限不够 Permission denied (publickey)

    一.背景 在git 提交的时候,突然就行不通,一直报错: Permission denied (publickey). fatal: Could not read from remote reposi ...

  4. jenkins报错Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) 的处理

    问题背景: jenkins服务器发布代码后需要执行删除缓存的操作 ssh -p222 eus_pe_devadmin@1.1.1.1 "sudo rm -rf /dev/shm/nginx/ ...

  5. 使用SourceTree拉取代码出现Permission denied (publickey)

    Git拉取远程代码 或者使用SourceTree使用远程URL(SSH方式)克隆到本地 显示Permission denied (publickey) 首先确保在账号后台已经添加SSH Key 如果尚 ...

  6. git push 代码报错 Pushing to Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

    背景:从openshift上clone代码到本地,修改代码push报错 Pushing to Permission denied (publickey,gssapi-keyex,gssapi-with ...

  7. GIT_Error: Agent admitted failure to sign —— Permission denied (publickey).

    问题: # ssh 10.128.0.30 Agent admitted failure to sign using the key. Permission denied (publickey). 在 ...

  8. Permission denied (publickey). fatal: Could not read from remote repository.

    博主在github上下载tiny face的的源代码的时候,遇到git clone命令为:git clone --recursive git@github.com:peiyunh/tiny.git 而 ...

  9. git@github.com - Permission denied publickey错误

    命令行ssh -T git@github.com, 遇到如下错误: git@github.com: Permission denied (publickey). 用户文件夹.ssh下找到文件id_rs ...

最新文章

  1. Android问题汇总
  2. 第十五届全国大学生智能汽车竞赛深度学习组别预选赛提交作品队伍
  3. 有点长的 Java API 设计清单
  4. BZOJ3577 : 玩手机
  5. 一个不错的MYSQL数据库备份类,PHP版,一个文件,精简版
  6. pandas处理csv
  7. mysql查询时,offset过大影响性能的原因与优化方法
  8. linux用shell写正则表达式,Linux命令行与Shell脚本编程大全-shell正则表达式
  9. MVC中 关于退出按钮的写法
  10. LM算法+推导+C++代码实践
  11. 双网卡同时上内外网的解决方法
  12. 10 QT - 自定义信号和槽
  13. h5 api-获得地理经纬度和异常处理
  14. Python照片合成
  15. 2021 CCPC 哈尔滨 E. Power and Modulo (思维题)
  16. 第三天python作业
  17. 银河土星_不要购买三星银河笔记20
  18. 接入微信分享 以及使用eclipse调试cocos2dx
  19. 使用id生成6位数(字母加数字),亲测不会重复
  20. 在阿里云5年后被裁员,历经100场面试,我终于拿到了4个offer

热门文章

  1. python:实现图像去雾算法(附完整源码)
  2. CT数据将.nii格式或.nii.gz格式转换为dcm格式
  3. grafana部署与使用
  4. 流程与IT管理是未来IT行业发展的必经之路
  5. CSAPP Lab5实验记录 ---- Shell Lab(实验分析 + 完整代码)
  6. cakephp视图用php文件,cakephp使用笔记
  7. poi操作excel,复制sheet,复制行,复制单元格
  8. 几何的对称之美——风筝定理
  9. 网狐架设,中心服务器错误数据库异常:[DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问
  10. 《世界因你而不同-李开复自传》读书笔记(2/3)