# Error with authentication : git push

**URL:** <https://discuss.huggingface.co/t/error-with-authentication-git-push/57012>\
**Category:** Beginners\
**Created:** [October 1, 2023, 4:38pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012 "2023-10-01T16:38:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Okkoman](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@Okkoman](https://discuss.huggingface.co/u/Okkoman)\
**Post date:** [October 1, 2023, 4:38pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/1 "2023-10-01T16:38:33Z")

</div>

On Ubuntu, in CLI, i can’t push to [git@hf.co](mailto:git@hf.co).  
i have the same problem when using ssh (SSH Key added in my profile on the website) or the token method

huggingface-cli login

```
_| _| _| _| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|_|_|
_| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_|_|_|_| _| _| _| _|_| _| _|_| _| _| _| _| _| _|_| _|_|_| _|_|_|_| _| _|_|_|
_| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|
_| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_|

To login, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens .

```

Token:  
Add token as git credential? (Y/n)  
Token is valid (permission: write).  
Token has not been saved to git credential helper.  
Your token has been saved to /home/chris/.cache/huggingface/token  
Login successful  
(base) chris@White:~/Dev/Projets/DLCourses/fastaicourses/models/PokeFace$ git push  
batch response: Authentication required: Password authentication in git is no longer supported. You must use a user access token or an SSH key instead. See [Deprecation of Git Authentication using password](https://huggingface.co/blog/password-git-deprecation)

---

<div class="post-metadata">

**Author:** ![wsxiaoys](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@wsxiaoys](https://discuss.huggingface.co/u/wsxiaoys)\
**Post date:** [October 2, 2023, 3:11am UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/2 "2023-10-02T03:11:51Z")

</div>

+1, I’m facing the same issue - event after adding ssh pub key to my account

---

<div class="post-metadata">

**Author:** ![GeroldMeisinger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/geroldmeisinger/32/20001_2.png) [@GeroldMeisinger](https://discuss.huggingface.co/u/GeroldMeisinger)\
**Post date:** [October 2, 2023, 11:30am UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/3 "2023-10-02T11:30:01Z")

</div>

+1 same issue. pushing to HF stopped working today, worked before.

---

<div class="post-metadata">

**Author:** ![wmkrug](https://avatars.discourse-cdn.com/v4/letter/w/67e7ee/32.png) [@wmkrug](https://discuss.huggingface.co/u/wmkrug)\
**Post date:** [October 2, 2023, 2:05pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/4 "2023-10-02T14:05:37Z")

</div>

I am also getting this error on git operations, and I have never used password authentication with HuggingFace git repos to being with.

---

<div class="post-metadata">

**Author:** ![wmkrug](https://avatars.discourse-cdn.com/v4/letter/w/67e7ee/32.png) [@wmkrug](https://discuss.huggingface.co/u/wmkrug)\
**Post date:** [October 2, 2023, 2:50pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/5 "2023-10-02T14:50:31Z")

</div>

I was just able to pull from a private repo again without error, so the problem may be resolved.

---

<div class="post-metadata">

**Author:** ![Okkoman](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@Okkoman](https://discuss.huggingface.co/u/Okkoman)\
**Post date:** [October 2, 2023, 2:53pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/6 "2023-10-02T14:53:11Z")

</div>

it’s ok for me too

---

<div class="post-metadata">

**Author:** ![pierric](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierric/32/50750_2.png) [@pierric](https://discuss.huggingface.co/u/pierric)\
**Post date:** [October 2, 2023, 3:34pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/8 "2023-10-02T15:34:59Z")

</div>

Hi, sorry about that, we indeed had an issue with git that has been resolved, everything should work correctly again.

---

<div class="post-metadata">

**Author:** ![pierric](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierric/32/50750_2.png) [@pierric](https://discuss.huggingface.co/u/pierric)\
**Post date:** [October 9, 2023, 4:27pm UTC](https://discuss.huggingface.co/t/error-with-authentication-git-push/57012/9 "2023-10-09T16:27:01Z")

</div>


