My ssh keys are definitely configured correctly since I never asked for a password when using ssh. But capistrano still asks for a password when deploying with cap deploy . It does not ask for a password when configuring cap deploy:setup , though, oddly enough. This would make the deployment cycle smoother without a password prompt.
Features: I am deploying the Sinatra app for a shared Dreamhost account (which uses Passenger). I followed the textbook that worked for so long, and then it worked perfectly. Since then, something has broken. I am using capistrano (2.5.9) and git version 1.6.1.1. Here is my Capfile:
load 'deploy' if respond_to?(:namespace)
And here is the output of what happens when I cap deploy , before the password prompt:
$ cap deploy * executing `deploy' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' updating the cached checkout on all servers executing locally: "git ls-remote ehsanul@jellly.com:git/jellly.git deploy" /usr/local/bin/git * executing "if [ -d /home/ehsanul/jellly.com/shared/cached-copy ]; then cd /home/ehsanul/jellly.com/shared/cached-copy && git fetch origin && git reset --hard ea744c77b0b939d5355ba2dc50ef1ec85f918d66 && git clean -d -x -f; else git clone --depth 1 ehsanul@jellly.com:git/jellly.git /home/ehsanul/jellly.com/shared/cached-copy && cd /home/ehsanul/jellly.com/shared/cached-copy && git checkout -b deploy ea744c77b0b939d5355ba2dc50ef1ec85f918d66; fi" servers: ["jellly.com"] [jellly.com] executing command ** [jellly.com :: out] ehsanul@jellly.com password: Password: ** [jellly.com :: out] ** [jellly.com :: out] remote: Counting objects: 7, done. remote: Compressing objects: 100% (4/4), done.
What can be broken?
ruby ruby-on-rails ssh-keys sinatra capistrano
ehsanul Jul 16 '10 at 23:55 2010-07-16 23:55
source share