Question

[Solved] Github Authentication Failed – … GitHub does not provide shell access

$ git remote add origin [email protected]: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 [email protected]
 Hi lut! You've successfully authenticated, but GitHub does not provide shell access.

The Github article https://help.github.com/articles/generating-ssh-keys/ says that “Shell access” should not be an issue? What could the problem be?

Enquirer: Lut

||

Solution #1:

Try and redefine the ssh url for remote origin:

git remote set-url origin [email protected]: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, is issue was the URL of the existing origin: EvolutionApp: it needed to be replaced by a valid one.
Using git config url."ssh://[email protected]/".insteadOf https://github.com/ would not have helper, considering there was no HTTPS URL in the first place.

Respondent: VonC

Solution #2:

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.

Respondent: bSaraogi

Solution #3:

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.

Respondent: SLaks

Solution #4:

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.

Respondent: Ymin Hu

Solution #5:

You can add this in the ~/.gitconfig file.

[url "ssh://[email protected]/"]
        insteadOf = https://github.com/

Now ssh will be used instead of https.

Respondent: Sudesh Chaudhary

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy