1

Hi I'm following Hartl's RoR tutorial and when trying to push my first_app directories to Git, I get the following error:

haseebjaved$ git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I'm on XCode 4.1, Ruby 1.9.2, Rails 3.0.11.

Same error when I omit the '-u' from the command.

Thank you for your help.

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
hjaved
  • 1,585
  • 2
  • 10
  • 10

1 Answers1

1

Assuming you are pushing to Github, you should add your key to GitHub.

http://help.github.com/linux-set-up-git/

emre nevayeshirazi
  • 18,983
  • 12
  • 64
  • 81