# Problem with cloning due to token authentication

**URL:** <https://discuss.huggingface.co/t/problem-with-cloning-due-to-token-authentication/108776>\
**Category:** Beginners\
**Created:** [September 26, 2024, 1:27pm UTC](https://discuss.huggingface.co/t/problem-with-cloning-due-to-token-authentication/108776 "2024-09-26T13:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahmoodn](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Mahmoodn](https://discuss.huggingface.co/u/Mahmoodn)\
**Post date:** [September 26, 2024, 1:27pm UTC](https://discuss.huggingface.co/t/problem-with-cloning-due-to-token-authentication/108776/1 "2024-09-26T13:27:21Z")

</div>

Hi,  
I would like to run the following command:

```auto
export CHECKPOINT_PATH=${PWD}/Llama-2-70b-chat-hf
git clone https://huggingface.co/meta-llama/Llama-2-70b-chat-hf ${CHECKPOINT_PATH}

```

However it first asks for the user name and password and then shows a fatal error saying `Password authentication in git is no longer supported`.

So, I created a token on the Huggingface settings page and retried with the following command but as you can see it throws another error:

```auto
$ git clone https://MYGMAILADDRESS:TOKEN@hugg
ingface.co/meta-llama/Llama-2-70b-chat-hf ${CHECKPOINT_PATH}
Cloning into '/scratch/mahmood/Llama-2-70b-chat-hf'...
fatal: unable to access 'https://gmail.com:TOKEN@huggingface.co/meta-llama/Llama-2-70b-chat-hf/': Port number ended with 'h'

```

Any advice to fix that?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 26, 2024, 3:27pm UTC](https://discuss.huggingface.co/t/problem-with-cloning-due-to-token-authentication/108776/2 "2024-09-26T15:27:29Z")

</div>

There appear to be multiple possible causes. Once the cause is identified, it seems to be easy to fix the problem, but it may be difficult to determine what the cause is.

> <https://stackoverflow.com/questions/47076616/bitbucket-clone-port-number-ended-with-t>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [September 28, 2024, 12:44am UTC](https://discuss.huggingface.co/t/problem-with-cloning-due-to-token-authentication/108776/4 "2024-09-28T00:44:22Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
