Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to clone private repository github : Authentication failed

I have created a private repo in github and when I am trying to clone it using cmd (git), I am prompted with github window where I enter my username and password. It says login failed in the cmd and then asks username/password in the cmd. I enter the credentials again and press enter. I get error like fatal: Authentication failed for

I performed the above operation using https. when I tried with ssh, i get this error [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

How can I clone this private repository?

like image 328
kakashiOfSharingan Avatar asked Jun 25 '26 03:06

kakashiOfSharingan


1 Answers

Github no longer supports basic account credentials (username and password). You have to generate a personal access token to proceed. follow these steps here: Generate Personal Access Token

I use Webstorm IDE and it made this very easy to fix. I hope this works for you.

like image 108
Chris Josh Avatar answered Jun 26 '26 21:06

Chris Josh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!