Solving GitHub Setup Permission Denied Error
When you follow the instructions on github to setup a repository you may receve the following error when you try to run git push orgin master.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
This error means that you need to create a ssh-key. To generate a SSH key on a Mac just type:
ssh-keygen
After the file is created, run
cat ~/.ssh/id_rsa.pub
Copy the RSA token and go to github under account settings and add the key. You can give it any title.
Try to run git push orgin master and your git will work.
