GitHub does not provide shell access
Q
1 | $ git remote add origin git@github.com:lut/EvolutionApp.git |
My keys were added succesfully
1 | You've successfully authenticated, but GitHub does not provide shell access. |
Solve
Try and redefine the ssh url for remote origin:
1 | git remote set-url origin git@github.com:name/projectname.git |
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@github.com/“.insteadOf https://github.com/ would not have helped, considering there was no HTTPS URL in the first place.
Finally
After input
1 | ssh -T git@github.com |
Although it still output
1 | You've successfully authenticated, but GitHub does not provide shell access. |
It just a notice .
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment