Github Authentication Failed -. .. Github Does Not Provide Shell Access
$ Git Remote Add Origin: Lut/Evolutionapp. Git Fatal: Remote Origin Already Exists. $ Git Push -U Origin Master Fatal: 'Evolutionapp' Does Not Appear to Be a...
$ git remote add origin :lut/EvolutionApp.git
fatal: remote origin already exists.
$ git push -u origin master
fatal: 'EvolutionApp' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
My keys were added succesfully
$ ssh -T
Hi lut! You've successfully authenticated, but GitHub does not provide shell access.
The Github article says that "Shell access" should not be an issue? What could the problem be?
6 Answers
Try and redefine the ssh url for remote origin:
git remote set-url origin :lut/EvolutionApp.git
And try again.
Only git remote set-url can change an existing remote URL (as opposed to git remote add, to add a new remote name and URL)
Here, the issue was the URL of the existing remote 'origin', EvolutionApp: it needed to be replaced by a valid one.
Using git config url."ssh://git@".insteadOf would not have helped, considering there was no HTTPS URL in the first place.
You can add this in the ~/.gitconfig file.
[url "ssh://git@"]
insteadOf =
Now ssh will be used instead of https.
You might have to add the remote again. That error message happens when Git doesn't know where to push to.
Use git remote -v check if the remote exists, if not, add it.
Even then if it doesn't work try removing the GIT_SSH environment variable, this maybe causing the problem.
This can happen if you have an incomplete remote entry in your global config.
Run git config -e --system, comment out any [remote entries, re-add the remote, and try again.
check if you are using https as remote url instead of ssh.
I set my remote url to http and encountered this issue. After resetting the url to ssh protocol the problem is gone.
if there is trust issue for android studio or vs code project in git You can give safe permissions like below , with your project path in Ubuntu
git config --global --add safe.directory '_your_project_path'
git config --global --add safe.directory '/data/project/project/MyApp/android_app'