Hi, Is switching to Capistrano 3 an option for you? If yes, then you might find this plugin useful - it troubleshoots this exact problem: Here's the link: https://github.com/bruno-/capistrano-ssh-doctor (capistrano 3 only!)
On Thursday, May 15, 2014 9:52:48 AM UTC+2, d...@html24.net wrote: > > I'm trying to deploy a Rails app to a VPS. The source code is hosted at > BitBucket. > > I keep getting > > executing locally: "git ls-remote > ssh://g...@bitbucket.org/HTML24DK/wdp_tuborg-cms.git master" > Permission denied (publickey). > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > > > I have setup Capistrano to deploy with the "deploy" user and if I log in > to the server myself with SSH as "deploy" and run "git ls-remote > ssh://g...@bitbucket.org/HTML24DK/wdp_tuborg-cms.git master" then it works > just fine. > > > Any suggestions? > > Versions: > > - Ruby: 1.9.1 > - Capistrano: 2.15.5 > - Rails 3.1.1 > - Rake: 0.9.2.2 > > Platform: > > - Working on.... > - Deploying to... > > Logs: > > - Output of when I try to deploy > https://gist.github.com/davidpdrsn/4daa814f35577f397cde > > Files: > > - Files https://gist.github.com/davidpdrsn/10e94fb4288996e35933(Capfile, > deploy.rb, production.rb, and staging.rb) > > -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/94da67b0-c95d-45d0-8272-f7ad87c6bc77%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.