i'm new use of VSCode. I'm trying to push my commits to remote repo, i'm getting credentials prompt, but i getting following output:
remote: Anonymous access to myname/myrepo.git denied.
fatal: Authentication failed for 'https://github.com/myname/myrepo.git/'
git fetch
Please help
Thanks
There are many people having this problem. I know it has been reported for a couple of times here: https://code.visualstudio.com/Issues/List
It seems those tickets are not available on public. File a new bug. Hopefully they are going to fix it until the next release.
I just had a problem where I was receiving a similar error, and I found these articles resourceful to fix this issue.
Potential reasons for problem:
Windows Credentials doesn't have the right Github credentials
Adding Git credentials on Windows
Github deprecated password authentication and you now have to use Personal Access Token when pushing
https://techglimpse.com/git-push-github-token-based-passwordless/
Hope this is helpful to anyone else that comes across this post.
Related
I just created a new Github repository, and as I was about to clone it to start pushing files I realized I no longer managed to pass the authentication step. I have tried pretty much every combination of solutions I could find on the Internet, starting with how I used to do it (git clone https://<PAT>#github.com/<username>/<repo name>), and nothing seems to work. I also tried the <username>:<PAT>#github.com or oauth2:<PAT>#github.com variants among other things. When trying to push, I either end up having to enter a password that's no longer supported and inevitably fails, or I get straight up told my username or password are invalid. I also regenerated the PAT so it's not an expiration issue.
I know this is quite similar to other questions on this site, but none of their answers worked for me. Did Git change their authentication system again recently?
Suddenly, in the middle of the day, github ceased to work in one of my machines.
I just git push from my development machine, then I write down my userid and paste my personal access token. Done.
Just a few seconds later, I switch to my AWS online server, then I git pull, write down my userid and then pasted (from the same clipboard) my personal access token.
The answer has been
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/pdipietro/kebraServer/'
Now, on that machine (Ubuntu 20.04.3) I cannot do any git operation: the result is always the same as above.
On my development machine, and in other servers, I tried to git push and git pull that project and some others, and everything runs good as always.
I tried also to reboot the machine, without success.
Then, I generate new personal access token to my github, and tried with it, too: the same result.
At the end, I wrote this same post to the github community, but Our automated spam filter, Akismet, has temporarily hidden your post.
Can someone help?
Suddenly, it restart to run correctly.
With no words for github community.
I have no words for this.
I cloned a project from Github, which went well. Then I pulled once and accidently entered the wrong credentials. Now I always get "failed to get server certificate: The handle is in the wrong state for the requested operation". So this looks like that problem but it can't be that TLS issue because cloning from that Github repo worked just a few minutes before (not anymore now). How can I make GitKraken forget my Github credentials? Settings→Integrations→GitHub→Disconnect did not do the trick. Adding a GitKraken SSH key to GitHub did not help either.
Update: Now I tried Forget All. The problem now is that GitKraken is asking me again and again for my credentials. But login to GitHub in browsers work. Why?
In the end I cloned the project again. Maybe this workaround also works for others.
When I commit my changes and attempt to Sync / Push to my github repository, I get the following error:
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn askpass: No such file or directory
could not read Username for 'https://github.com': terminal prompts disabled
Pushing to https://github.com//ComicBookGallery
I am using VS2017 Community, and using the Github for VS Extension. I've googled this error but have been unable to solve. Running VS in administrator mode makes no difference,
Any ideas?
(I am logged into GitHub within VS, and can log into my account fine on github.com)
Thanks in advance
I went to the repository and searched for this issue, found this issue from today, where user #meaghanlewis states:
Today GitHub turned off TLSV1.1 in order to permanently disable deprecation of several weak cryptographic standards. You could read more about that here: https://githubengineering.com/crypto-removal-notice/.
To fix this issue, you should upgrade to the latest version of Visual Studio, 15.5.7- which provides support for TLSV1.2. This update allows Git to connect to services that have deprecated support for TLSv1 and TLSv1.1.
You might also need to sign in (or sign out and then sign back in) using GitHub for Visual Studio.
User #barsonax replied stating that upgrading it to 15.5.7 fixed it.
Hope this helps, but it's better to continue seeking help for this issue directly on the issue.
Whenever I try to upload the project to github the following error is coming.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Please somebody help me. I am new to to github. I cannot understand what is wrong
You are likely trying to connect to GitHub using SSH. Try this link if you want to use ssh. Instead the more preferred method is to push/pull over HTTPS. Try this instead git remote set-url origin https://github.com/User/UserRepo.git. Then if you push, git will ask for your email and password and most probably be successful. Using Https also solves the problem of push/pull behind firewalls
sounds like you haven't properly set up your SSH key for github. The GitHub Documentation should be a good place to start help you properly set up your SSH keys.