Sorry to post another Permission denied (publickey) query.

I can ssh to my production server from the machine I am running the
cap deploy from.
I can ssh to my git repository machine from the machine I am running
the cap deploy from.

I ran cap deploy:setup successfully

I changed some permissions that were causing problems on the
production server.

I ran cap deploy and I get :
Enter passphrase for /home/george/.ssh/id_rsa:
    [mydomain.com] executing command
 ** [mydomain.com :: err] Permission denied (publickey).
 ** [mydomain.com :: err] fatal: The remote end hung up unexpectedly
    command finished
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/paua/public_html/paua_service/releases/
20100922010429; true"

In my deploy.rb I have:
ssh_options[:forward_agent] = true #tells cap to use my local private
key
default_run_options[:pty] = true #apparently helps with passphrase
prompting
set :application, "paua_service"
set :location,  "mydomain.com"
set :user, "paua"
set :repository, "ssh://[email protected]/home/george/git/
paua_service.git"
set :deploy_via, :remote_cache

The recipe has worked on other servers/apps so I am at a loss.

Cheers
George

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to