Capistrano Deployment on Dreamhost

I’m having trouble getting Capistrano to work on Dreamhost. I seem to be
having problems logging in, but I can ssh fine to my dreamhost server
from this machine. This doesn’t seem like a dreamhost specific thing to
me, but I’m kind of stuck.

Here’s the exception I get from “cap setup”:
/opt/local/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/session.rb:129:in
`initialize’: jschementi (Net::SSH::AuthenticationFailed)

And Here’s the meat of my config/deploy.rb file:
set :application, “starline”
set :repository, “http://www.schementec.com/starline/Starline

role :web, “starline.schementec.com
role :app, “starline.schementec”
role :db, “mysql.schementec.com”, :primary => true

set :user, “jschementi”
set :deploy_to, “/home/#{user}/starline.schementec.com”

set :use_sudo, false
set :checkout, “export”

Let me know if anyone has any insite. Thanks.
~Jimmy

The first step is generally to configure ssh and authorized_keys so
that ssh login doesn’t require a password (or a username, which is
where your’s seems to be failing). See <http://blog.dreamhosters.com/
kbase/index.cgi?area=138>. Then, here’s my deploy.rb that works on
dreamhost:

set :user, ‘dankohn’
set :application, “flydash.com
set :repository, “http://svn.flydash.com/flydash/flydash
set :use_sudo, false
set :checkout, “export”

role :web, application
role :app, application
role :db, application, :primary => true

set :deploy_to, “/home/#{user}/#{application}”

desc “Restart the FCGI processes on the app server as a regular user.”
task :restart, :roles => :app do
run “killall -9 dispatch.fcgi >/dev/null 2>&1 || true”

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000