- Project used python (don't know it)
- Project hosted on GitHub (haven't used it)
- All of the supporting documentation was for linux users (I can use Linux as a general office worker... using it as a development platform is beyond me at the moment)
I was supposed to be able to run the following command from the shell in order to get the code downloaded to my computer.
git clone git@github.com:jwmajors81/openstates.git
However, I ran into two issues.
- My account within Linux didn't have permission to update the known_hosts file (/home/jeremy/.ssh/known_hosts
- I got a permission denied message from GitHub... the exact message was "Permission denied (publickey)"
After looking at the SSH Troubleshooting guide on GitHub I realized that I skipped a couple steps in my setup.... however fixing that issue was a little harder than I would have wished. I ended up resolving the issue by running all git and ssh commands using SUDO. I know that isn't the most ideal way to do this, but I just couldn't figure out how to give my user id (jeremy) access to the /home/jeremy/.ssh/ directory. I'm sure if I would have looked into it more I would have found the solution (chmod is your friend), but I simply didn't want to deal with it at the moment. So I did the following:
- Executed
sudo ssh-keygen -t rsa "{email address}"
and at all of the prompts I just hit enter to accept defaults. This populated the /root/.ssh/id_rsa.pub file with a key - Copied key generated in id_rsa.pub file to Account Settings in GitHub. Look at step 4 on http://help.github.com/linux-set-up-git/ for more information
- Executed
sudo ssh git@github.com
to make sure that everything was setup. If you get permission denied then that means that you didn't do something correctly :( - you can use the command
sudo ssh -v git@github.com
to get more verbose messages about the failure. If you don't see "Offering public key: /root/.ssh/id_rsa" in the debug messages then that means you don't have any public keys ready to offer.
At that point I was able to execute
sudo git clone git@github.com:jwmajors81/openstates.git
and finally the forked code was on my machine. Time for a beer.