V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
world
V2EX  ›  GitHub

github 提交总是提示公钥问题

  •  
  •   world ·
    wojiaxiaosha · 2015-09-26 10:21:51 +08:00 · 3204 次点击
    这是一个创建于 3135 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近把系统升级了,原计划重新搭建 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 [email protected] ”连接 github 是成功的, SSHKey 也是配置在账户设置中,可显示连接成功后的用户信息!

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

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

    第 1 条附言  ·  2015-09-28 16:59:03 +08:00
    已解决,原因是新版本的 msysgit 的问题,降低版本至 git-1.9.5 就可以了!谢谢各位
    8 条回复    2016-01-14 11:29:13 +08:00
    anjunecha
        1
    anjunecha  
       2015-09-26 10:26:36 +08:00
    1. ssh-agent -s
    2. ssh-add -l
    ehs2013
        2
    ehs2013  
       2015-09-26 10:34:09 +08:00
    用 https ,加个 netrc 就好
    sarices
        3
    sarices  
       2015-09-26 10:37:15 +08:00
    .ssh 700
    .ssh/* 600
    voyager
        4
    voyager  
       2015-09-26 11:59:28 +08:00
    最近也遇到这种问题了,不过挂上 VPN 就没 OK 了
    world
        5
    world  
    OP
       2015-09-26 13:18:52 +08:00
    @ehs2013 是 repository 的类型吗?
    waylife
        6
    waylife  
       2016-01-10 22:42:50 +08:00
    同遇到,挂上 vpn ,命令行走 proxychains4 解决了 http://yanghui.name/blog/2015/07/19/make-all-command-through-proxy/
    waylife
        7
    waylife  
       2016-01-10 23:04:36 +08:00
    world
        8
    world  
    OP
       2016-01-14 11:29:13 +08:00
    @waylife 最近版本更新了 不用降低版本也可以了!用最新版
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   917 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:02 · PVG 06:02 · LAX 15:02 · JFK 18:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.