WebFaction
Community site: login faq

I have a similar (if not the same) issue as #3775. I setup git as an app as per the instructions, and most things work fine. I can ssh fine, clone from my laptop, push, etc, all with ssh keyless access, however I'm trying to setup Capistrano for deployments to my server, where both the git repo and the web app are on the same machine (~/webapps/git/repos/site.git and ~/webapps/htdocs, respectively) .

I generated a new key pair on the server using ssh-keygen, for access from the server, using the instructions from webfaction . I cat'ed that new pub key to the authorized keys.

If I ssh into webfaction I can clone there like so: git clone user@user.webfactional.com:webapps/git/repos/site.git

This prompts me for my password every time. After entering it I'm successful, but I shouldn't have to enter it right?

Furthermore, I'm using ssh_options[:forward_agent] = true in my Capistrano deploy.rb script, so I shouldn't need to do this in the first place, right?

asked 22 Jul '11, 08:25

catsby
111
accept rate: 0%

SSH itself looks for the private key at the location ~/.ssh/id_dsa (unless you specify an identity file with ssh -i /path/to/key). Are you sure SSH is able to find the private key?

Also, you can try using ssh localhost or git clone $USER@localhost:webapps/git/repos/site.git instead of using user.webfactional.com.

Can you try these and let us know if it helps? Thanks!

(22 Jul '11, 19:26) ryans ♦♦

Seems I named the ssh key on the server something other than the default; generating one with default id_dsa fixed the issue of keyless ssh/git from the server, so I can do normal deployments like that now.

Still curious why ssh_options[:forward_agent] didn't seem to work, however I'm up and running now.

Thanks for the help

(27 Jul '11, 08:19) catsby
Be the first one to answer this question!
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
×20

question asked: 22 Jul '11, 08:25

question was seen: 4,447 times

last updated: 27 Jul '11, 08:19

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 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