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

2015-03-17 10:39:33 +08:00
 Tiande
在 Github 试了下二次验证,然后 Git 就罢工了,没找到解决方法,来请教一下。

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

二、ssh -T 了一下:
$ ssh -T git@github.com
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).

目前关闭二验后,正常使用。
2782 次点击
所在节点    问与答
4 条回复
yfdyh000
2015-03-17 10:51:56 +08:00
https://github.com/blog/1614-two-factor-authentication
How does it work for command-line Git?
xiaogui
2015-03-17 10:54:50 +08:00
开启二次验证,没什么影响呀
Tiande
2015-03-17 10:58:55 +08:00
@xiaogui 请看1L
@yfdyh000 叩谢 ;)
Tiande
2015-03-17 10:59:44 +08:00
已解决 (///▽///)

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

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

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

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

© 2021 V2EX