# Authentication Failed

> Cause and fix for the Authentication Failed error when cloning a GIT repository in Studio due to incorrect credentials.

## Over HTTPS

When cloning a GIT repository, the **Enter Credentials** window is displayed with the message **Authentication failed** if the provided credentials were incorrect:

![Over HTTPS](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-394799-d037fe15.webp)

Enter the correct credentials and try again. You can also use Git Bash, for example, to clone your repository remotely and thus, check if the username and password are correct.

In the following image, we tried to clone a repository over HTTPS, but entered an incorrect password. The Git Bash window shows that the credentials were incorrect.

![Over HTTPS](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-171216-46c68f0b.webp)

## Over SSH

The following **Enter Credentials** window is displayed when authentication fails over SSH:

![Over SSH](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-171644-5416f710.webp)

Enter the correct **Private Key Path** and **Password** and try again. You can also use Git Bash, for example, to clone your repository remotely and thus, check if the token and/or password are correct.

In the following image, we tried to clone a repository over SSH, but we didn't have any public SSH keys set up on our account.

![Over SSH](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-167691-b0223c8d.webp)
