0

I am attempting to push my code to my github account, however whenever I try, i get this

Pushing to git@github.com:AlphaModder/Space-Dimension-Mod.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Question: how can I avoid that "Permission Denied"? Is the GitHub remote address a valid one?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
AlphaModder
  • 3,266
  • 2
  • 28
  • 44

1 Answers1

6

I would recommend using the https address for your remote 'origin':

https://github.com/AlphaModder/Space-Dimension-Mod.git

That would avoid having to deal with all the intricacies of ssh setup.
Plus, you can cache your credentials too.

If you do need an ssh address... then see for instance "ssh,github,it does not work".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 2
    this worked out perfect. I am able to give my credentials after modifying the remote origin to the above-specified format in .git/config ... Thanks – kvm006 Mar 14 '18 at 17:49