WebFaction
Community site: login faq

ive created a public key in my webfaction account, ive added it to my github account, yet whenever i try to push any changes to github, i get:

Permission denied (publickey).

Any ideas?

asked 05 Nov '10, 11:50

aziz
1167
accept rate: 0%

Just to clarify. You did the following:

  1. SSHed into your server
  2. Created an SSH pub/private key pair
  3. Added the public key to your GitHub account
  4. Pushed from your WebFaction account (not your local computer)?
(05 Nov '10, 12:02) David L ♦♦

Yes, all on webfaction. I use github from my local computer and it works fine

(05 Nov '10, 12:05) aziz

Does the key work if you copy it your local machine (and vice-versa) ?

(05 Nov '10, 12:08) David L ♦♦

il just check

(05 Nov '10, 12:09) aziz

hi aziz, david,

I have exactly the same pb. Have you found out what went wrong ? Fixed it ?

Regards, Guillaume

(28 Nov '10, 17:56) gboue

Hi Guillaume,

As long as you've done the steps that David L mentioned it should work. I've done this on 2 of our servers so far and I've not seen any problems. What are the permissions of your pub/private key pair?

Update: I've added an answer that works.

(28 Nov '10, 18:11) klynton
showing 5 of 6 show 1 more comments

I've tested this out and here's what you need to do:

  1. Copy your public key
  2. Log in to Github
  3. Go to the repo you want to commit from
  4. Click Admin for the repo
  5. Go to Deploy keys
  6. Add a new deploy key for your server
  7. Test a commit.

I've got this set up for a couple of my repos on our servers and it is working correctly. Please try this and let us know if it works.

Note: The GitHub documentation says that the deploy keys need to be unique per repo, thanks gboue for the extra info.

Second update:

I've tested copying and removing the deploy key from the repo level and adding it to the Account level successfully.

permanent link

answered 28 Nov '10, 18:44

klynton
1.6k1210
accept rate: 41%

edited 28 Nov '10, 19:42

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×103

question asked: 05 Nov '10, 11:50

question was seen: 4,161 times

last updated: 28 Nov '10, 19:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM