Tiande
V2EX  ›  问与答

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

  •  
  •   Tiande · Mar 17, 2015 · 3379 views
    This topic created in 4166 days ago, the information mentioned may be changed or developed.
    在 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 replies    2015-03-17 10:59:44 +08:00
    yfdyh000
        1
    yfdyh000  
       Mar 17, 2015   ❤️ 1
    https://github.com/blog/1614-two-factor-authentication
    How does it work for command-line Git?
    xiaogui
        2
    xiaogui  
       Mar 17, 2015
    开启二次验证,没什么影响呀
    Tiande
        3
    Tiande  
    OP
       Mar 17, 2015
    @xiaogui 请看1L
    @yfdyh000 叩谢 ;)
    Tiande
        4
    Tiande  
    OP
       Mar 17, 2015
    已解决 (///▽///)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3181 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    ♥ Do have faith in what you're doing.