V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Tiande
V2EX  ›  问与答

Git 怎么设置才能连接 Github ,在开启二次验证后?

  •  
  •   Tiande · 2015-03-17 10:39:33 +08:00 · 2775 次点击
    这是一个创建于 3321 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在 Github 试了下二次验证,然后 Git 就罢工了,没找到解决方法,来请教一下。

    一、git push 时:
    remote: Invalid username or password.

    二、ssh -T 了一下:
    $ ssh -T [email protected]
    The authenticity of host 'github.com (192.30.252.130)' can't be established.
    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
    Are you sure you want to continue connecting (yes/no)? y
    Please type 'yes' or 'no': yes
    Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of know
    n hosts.
    Permission denied (publickey).

    目前关闭二验后,正常使用。
    4 条回复    2015-03-17 10:59:44 +08:00
    yfdyh000
        1
    yfdyh000  
       2015-03-17 10:51:56 +08:00   ❤️ 1
    https://github.com/blog/1614-two-factor-authentication
    How does it work for command-line Git?
    xiaogui
        2
    xiaogui  
       2015-03-17 10:54:50 +08:00
    开启二次验证,没什么影响呀
    Tiande
        3
    Tiande  
    OP
       2015-03-17 10:58:55 +08:00
    @xiaogui 请看1L
    @yfdyh000 叩谢 ;)
    Tiande
        4
    Tiande  
    OP
       2015-03-17 10:59:44 +08:00
    已解决 (///▽///)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2867 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:11 · PVG 22:11 · LAX 07:11 · JFK 10:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.