Authentication failed - How can I clear and re-add SSH #64661
-
Select Topic AreaProduct Feedback BodyHey, so I'm stuck with the below error when I try to push in github desktop. I have tried several things through the docs to make a new SSH key but have had no luck. Is there a simple way for me to clear all in my host file, clear all ssh keys, and start over? _Authentication failed. Some common reasons include:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@jordankeen Of course! It seems like you're encountering authentication issues when trying to push to GitHub using GitHub Desktop. Here's a step-by-step guide to troubleshoot and resolve the issue if these steps work kindly mark this as the correct answer thanks Check GitHub Desktop Settings: Open GitHub Desktop. If you're logged in but still facing issues, try logging out and then logging back in. This will refresh your authentication token. If you're using SSH authentication, ensure that your SSH key is correctly added to the ssh-agent and associated with your GitHub account: |
Beta Was this translation helpful? Give feedback.
-
To clear all in your host file and all SSH keys, you can follow these steps:
This will delete all SSH keys that are stored in your -To re-add your SSH key to GitHub:
This will create a new SSH key pair in your
|
Beta Was this translation helpful? Give feedback.
-
I even get this error thru github.com online gui way. why this ? |
Beta Was this translation helpful? Give feedback.
To clear all in your host file and all SSH keys, you can follow these steps:
This will delete all SSH keys that are stored in your
~/.ssh
directory.-To re-add your SSH key to GitHub:
This will create a new SSH key pair in your
~/.ssh
directory. The default filename for the private key isid_rsa
and the default filename for the public key isid_rsa.pub
.When prompted,…