Forums

Git Clone Authentication Fails

Hi I'm trying to clone a Django app from my github but as I write git clone <my-repo-http-address> which I have copied from my repo page on github the bash console asks for my github user and password which I type in but everytime it fails to authenticate.

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/...  '

I have tried this many times and have manually typed in all the lines instead of copy pasting them with no success. Then I tried SSH which shows the error

ERROR: Repository not found. fatal: Could not read from remote repository.

What should I do now ?(I have checked the repo's url but I'm typing what github gives me as the url)

I'm not sure we can be much help with authentication problems on github.

Just in case someone else is here in the future...I had a similar issue until I remembered that I have two-factor authentication turned on in Github. You need to generate an access token there and use that instead of your account password. Hope that helps!

Glad you figured it out! Another option would be to generate an SSH private/public key pair on pythonanywhere, and upload your public key to your github account. Then if you use the git@ address for your repo, you won't need to use a special access token...

@amberdiehl, you are a life saver!