-1

I'm trying to push a file from my Ubuntu terminal to GitHub. I have already setup a Personal Token Key on GitHub and pasted the token into the terminal password field during login, but I get an unable to access error. What does that mean? Any tips?

Please note: I am hiding my repository name in the terminal snippet below:

$ git push
Username for 'https://github.com': myemail
Password for 'https://[email protected]': 
remote: {"auth_status":"access_denied_to_user","body":"Permission to username/demo-repo.git denied to username."}
fatal: unable to access 'https://github.com/username/demo-repo.git/': The requested URL returned error: 403

1 Answer 1

0

The password can be used to log into the GitHub UI, but it can't be used to interact with the repository from git.

You can generate a token and use it instead of a password (see UserSettingsDeveloper settingsPersonal access tokens), but it's easier to generate an ssh key (see SSH AND GPG Keys under UserSettings).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.