Tiande
V2EX  ›  问与答

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

  •  
  •   Tiande · Mar 17, 2015 · 3558 views
    This topic created in 4264 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
    yfdyh000
    Mar 17, 2015❤️1
    1
    https://github.com/blog/1614-two-factor-authentication
    How does it work for command-line Git?
    xiaogui
    xiaogui
    Mar 17, 2015
    2
    开启二次验证,没什么影响呀
    Tiande
    Tiande
    OP
    Mar 17, 2015
    3
    @xiaogui 请看1L
    @yfdyh000 叩谢 ;)
    Tiande
    Tiande
    OP
    Mar 17, 2015
    4
    已解决 (///▽///)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 683ms · UTC 18:34 · PVG 02:34 · LAX 10:34 · JFK 13:34
    ♥ Do have faith in what you're doing.