github,sourcetree 收到未经授权的错误 [英] github, sourcetree getting unauthorized error

查看:49
本文介绍了github,sourcetree 收到未经授权的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 github 的新手,我在我的 git gui 中使用了 sourcetree,我已经使用了几天,但最近我收到一个错误,提示

im new to github and im using sourcetree for my git gui, ive been using it for a few days, but now lately im getting an error that says

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Nosthertus/nodejs_Chat.git/'

同样,当我尝试再次注册到 github 时返回错误

also when i tried to make another registration to github returns with error

authorization failed

也许是因为我做了一个双因素安全,我想用github制作一个shh-key,但没有解决问题,必须有一种方法让我的gui在没有登录的情况下连接到我的github帐户访问,我该如何解决这个问题?

maybe its because i made a two-factor security, i thought on making a shh-key with github, but does not fix the problem, there has to be a way to make my gui connect to my github account without the login access, how do i fix this?

推荐答案

这是因为我做了两重安全

its because i made a two-factor security

Heartbleed bug之后,GitHub 重置了所有活动的浏览器会话在我们的服务器上解决漏洞之前.

Following the Heartbleed bug, GitHub has reset all browser sessions that were active prior to the vulnerability being addressed on our servers.

您的 GitHub 帐户的应用程序部分检查您的 PAT(个人访问令牌)是否仍然有效.

Check if your PAT (Personnal Access token) is still valid in the Applications section of your GitHub Account.

请注意,ssh 密钥对 https url 没有影响,例如 https://github.com/Nosthertus/nodejs_Chat.git

Note that ssh keys have no effect on an https url like https://github.com/Nosthertus/nodejs_Chat.git

您是否需要使用 ssh 密钥,您至少应该更改原始网址:

Would you need to use your ssh key, you should at least change the origin url:

git remote set-url origin git@github.com:Nosthertus/nodejs_Chat.git

这篇关于github,sourcetree 收到未经授权的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆