I'm getting this error from the terminal (ubuntu), although if I write ssh -T [email protected]
I appear to be authenticated. I've just added a new ssh key, and I have a global config file. I've already tried different solutions found online, with no luck.
Can anyone help please?
I've tried
`git push -u origin master` or `git push -u origin main`
and this is the output of git remote:
$ git remote -v
origin https://github.com/loucat-dev/github-test.git (fetch)
origin https://github.com/loucat-dev/github-test.git (push)
origin [email protected]:loucat-dev/github-test.git (push)
"invalid username or password
" is not an error you would find with an SSH URL, but rather with an HTTPS one, as I detail here.
Try:
cd /path/to/local/repo
git remote set-url [email protected]/<me>/<myrepo>
Then you can add, commit and try to push, to validate that the authentication does work when writing back to your remote GitHub repository.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments