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

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

问题描述

我是github上的新手,我使用了sourcetree作为我的git gui,我已经使用了几天,但是现在我却收到了一个错误消息

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键,但是并不能解决问题,必须有一种方法可以使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错误之后,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网址无效,例如 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密钥,至少应更改原始URL:

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天全站免登陆