Authentication failed after some time
Asked by Jaydeep Panchal:

* 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.


Answers:
author: Patrik S
body: Hey [@Jaydeep Panchal](/t5/user/viewprofilepage/user-id/5495935) ,

and welcome to the Community!

The error message suggests the credentials you are using are either invalid or they have expired. Based on the description, it seems like you are using a git GUI, so I would like to ask you for a few more details:

* Could you confirm if you are using a git GUI (e.g Sourcetree, GitKraken, etc) ? If yes, which GUI is it?
* Can you share what action you are trying to execute when receiving that error (clone, push, fetch, etc)?
* Are you using HTTPS or SSH to interact with the repository? If HTTPS, are you authenticating with AppPassword, Access tokens, or OAuth?

With this information, we'll be able to assist you further.

Thank you, [@Jaydeep Panchal](/t5/user/viewprofilepage/user-id/5495935) !

Patrik S

comments: author: Jaydeep Panchal
body: Hi Pratik,

I'm using HTTPS to interact with the repository and authenticated with AppPassword.

Thank You!


author: Patrik S
body: Hello [@Jaydeep Panchal](/t5/user/viewprofilepage/user-id/5495935) ,

Thanks for confirming the protocol and type of authentication. May I have your input on the other questions as well?

* Could you confirm if you are using a git GUI (e.g Sourcetree, GitKraken, etc) ? If yes, which GUI is it?
* Can you share what action you are trying to execute when receiving that error (clone, push, fetch, etc)?
* Can you share a screenshot of when you received the error?


author: Jaydeep Panchal
body: Hello Patrik,

* Could you confirm if you are using a git GUI (e.g Sourcetree, GitKraken, etc) ? If yes, which GUI is it? **=\> Using git GUI (Git Desk Top App)**

* Can you share what action you are trying to execute when receiving that error (clone, push, fetch, etc)? **=\> When I change branch and clone, push, fetch, etc every-time asking username and password.**
* Can you share a screenshot of when you received the error?  

  ![Git1.png](https://community.atlassian.com/t5/image/serverpage/image-id/323912i8738A90F2253ADC5/image-size/large?v=v2&px=999 "Git1.png")


author: Patrik S
body: Hello [@Jaydeep Panchal](/t5/user/viewprofilepage/user-id/5495935) ,

Thank you for providing the information.

After some research, I found other users reporting a similar behavior when using GitHub Desktop app, and a bug was created for the developers of that tool:

* <https://github.com/desktop/desktop/issues/18586>

I would suggest following that thread to verify when a fix is released for that tool, and make sure you keep the tool updated to the more recent version to ensure you get the fix once it is available.

Thank you, [@Jaydeep Panchal](/t5/user/viewprofilepage/user-id/5495935) !

Patrik S


author: Jaydeep Panchal
body: Hello Patrik,

* Could you confirm if you are using a git GUI (e.g Sourcetree, GitKraken, etc) ? If yes, which GUI is it? **=\> Using git GUI (Git Desk Top App)**
* Can you share what action you are trying to execute when receiving that error (clone, push, fetch, etc)? **=\> When I change branch and clone, push, fetch, etc every-time asking username and password.**
* Can you share a screenshot of when you received the error?  
  ![Git1.png](https://community.atlassian.com/t5/image/serverpage/image-id/323912i8738A90F2253ADC5/image-size/large?v=v2&px=999 "Git1.png")![git2.png](https://community.atlassian.com/t5/image/serverpage/image-id/323911i17A2D78BE97212F2/image-size/large?v=v2&px=999 "git2.png")

Thank You!


Tags: bitbucket-cloud

cloud