expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

Won't authorize SSH connection #59

Closed selfagency closed 9 years ago

selfagency commented 9 years ago

I created an SSH key for my server and uploaded it to Github. screenshot 2015-06-07 17 31 27

I configured my plugin. screenshot 2015-06-07 17 24 23

But I'm getting this error and without more detail I can't understand why. screenshot 2015-06-07 17 24 54

mattgrshaw commented 9 years ago

Hi. Can you paste the debug info from the "Help" tab? Are you able to do git push through command line?

selfagency commented 9 years ago

I just pushed from the command line and it worked but it asks me for my keyphrase each time. After running it from the command line, I get a new error.

Permission denied (publickey).
fatal: Could not read from remote repository.

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

Here's the debug info:


Operating System    Linux
Exec() Enabled  true
Git Install Path    /usr/bin/git
Git Version git version 1.9.2
MySQL Install Path  /usr/bin/mysql
File Permissions    true
Repository Path /home/blackliv/public_html/cms
Repository Status   Click here to view.
mattgrshaw commented 9 years ago

Did you generate the SSH key with a keyphase? If so, you'll need to generate a new key without a keyphase so that it can be used automatically by Revisr.

selfagency commented 9 years ago

Ah, I see. Let me try again.

selfagency commented 9 years ago

Ok, that worked except now I have a new error.

fatal: Couldn't find remote ref master
mattgrshaw commented 9 years ago

That's strange. Is there anything on the remote repo? Can you run "git remote -v" in command line and let me know what it outputs?

selfagency commented 9 years ago
blackliv@serv01 [~/www/cms]# git remote -v
origin  git@github.com:selfagency/client-blacklivesmatterjewishresources.git (fetch)
origin  git@github.com:selfagency/client-blacklivesmatterjewishresources.git (push)
selfagency commented 9 years ago

The repo is empty. Weird.

selfagency commented 9 years ago

Ok. Just did a push from within the WP backend. Now it works. Hooray!

Thanks for your help. Maybe add a line about creating a key with no passphrase in the instructions.

mattgrshaw commented 9 years ago

Awesome, glad it's working! I just added a note about the passphrase to the remote config documentation.

Marking this as closed but please let me know if you run into any further issues.