github 提交总是提示公钥问题

2015-09-26 10:21:51 +08:00
 world

最近把系统升级了,原计划重新搭建 hexo 所需环境,所以只保留了 source thmems 文件夹和“_config 配置文件 ” git 重新安装,安装之后王 github 提交数据每次都失败。

提示:

Error: Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

但是使用命令“ ssh -T git@github.com ”连接 github 是成功的, SSHKey 也是配置在账户设置中,可显示连接成功后的用户信息!

求救各位 V 友,有没有什么解决方案?谢谢大家了

附: git 版本为 v2.5.3-32-bit
node.js 版本为 v4.1.1-x86

3218 次点击
所在节点    GitHub
8 条回复
anjunecha
2015-09-26 10:26:36 +08:00
1. ssh-agent -s
2. ssh-add -l
ehs2013
2015-09-26 10:34:09 +08:00
用 https ,加个 netrc 就好
sarices
2015-09-26 10:37:15 +08:00
.ssh 700
.ssh/* 600
voyager
2015-09-26 11:59:28 +08:00
最近也遇到这种问题了,不过挂上 VPN 就没 OK 了
world
2015-09-26 13:18:52 +08:00
@ehs2013 是 repository 的类型吗?
waylife
2016-01-10 22:42:50 +08:00
同遇到,挂上 vpn ,命令行走 proxychains4 解决了 http://yanghui.name/blog/2015/07/19/make-all-command-through-proxy/
waylife
2016-01-10 23:04:36 +08:00
world
2016-01-14 11:29:13 +08:00
@waylife 最近版本更新了 不用降低版本也可以了!用最新版

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/223801

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX