Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub : Authentication failed. Some common reasons include #1

Closed
englianhu opened this issue Sep 22, 2022 · 4 comments
Closed

GitHub : Authentication failed. Some common reasons include #1

englianhu opened this issue Sep 22, 2022 · 4 comments

Comments

@englianhu
Copy link
Owner

Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.
@englianhu
Copy link
Owner Author

1.公司的gitlab重构了,上午起来git pull一下最新的代码,始终提示remote: HTTP Basic: Access denied fatal: Authentication failed for。。。。。
2.然后我重新注册gitlab,再去pull代码 始终提示登录log in 我就反复的填写新的password,还是不好使,真的,在网上说的去控制面板中修改用户账户中的管理你的凭证 修改了当前的gitlab的密码还是不好使,我删了,重新写一个总行了吧,可惜。。。
急死我了 。。。。
3.后来我就去pycharm中重新Git clone一下新的代码。。。好使了就,然后在合并自己本地的和下拉的代码 就是麻烦了点。。。。。心疼自己
4.所以 自己去重新clone吧,时刻不断的pull和push对自己有好处

引用:remote: HTTP Basic: Access denied fatal: Authentication failed for

@englianhu
Copy link
Owner Author

englianhu commented Nov 11, 2022

问题

Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.

IMG_20221111_162509
IMG_20221111_162522
IMG_20221111_170142
IMG_20221111_170155

解答

在上传Repository到github中出现“Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository”错误提示时,可采用以下方法解决问题:

在GitHub Desktop -> Repository -> Repository Settings -> Remote 中将ssh URL改成 https URL即可。例如:

原来:ssh://git@github.com/hulixin2014/testabc.git

改成:https://git@github.com/hulixin2014/testabc.git

引用:CSDN『原创』Github Desktop出现Authentication failed错误的解决方法

@englianhu
Copy link
Owner Author

IMG_20221111_173153
IMG_20221111_173244

🚩🦔秦孝公商鞅变法:为英国皇室清君侧,铲除全球英属共运会諸国和全球16亿回教徒最合法。(不忘初心,方得始终)
🚩🦔愿者上钩:那些身在马来回教总警署、美国FBI、猫城员工、中国公安局工作的非法诈骗政府,施展巫术和茅山道术、窥听窥视、入侵电子仪器屠杀人类,却欺诈全球不宣布亡国...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant