I'm trying to deploy my application on an Amazon EC2 instance running
Ubuntu. I have a keypair set up and can log into the instance using
ssh just fine. Matter of fact, all my capistrano tasks run fine on the
instance until I try to do an svn checkout:
* executing `deploy:setup'
* executing "umask 02 && mkdir -p /mnt/app /mnt/app/releases /mnt/
app/shared /mnt/app/shared/system /mnt/app/shared/log /mnt/app/shared/
pids"
* executing `deploy:check'
You appear to have all necessary dependencies installed
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
* executing "svn checkout -q -r2048 svn+ssh://
foo.bar.com/svn/baz/
code/ror/tags/quez/12
/mnt/app/releases/20080501051610 && (echo 2048 > /mnt/app/releases/
20080501051610/REVISION)"
servers: ["
ec2-75-101-xxx-xxx.compute-1.amazonaws.com"]
[
ec2-75-101-xxx-xxx.compute-1.amazonaws.com] executing command
** [err] Host key verification failed.
** [err] svn: Connection closed unexpectedly
command finished
*** [deploy:update_code] rolling back
(I've edited the output for brevity.)
I get "Host key verification failed", so I log in to the instance and
try to execute the command manually to see what the problem is:
root@ec2-75-101-xxx-xxx-production:~# svn checkout -q -r2048 svn
+ssh://
foo.bar.com/svn/baz/code/ror/tags/quez/12 /mnt/app/releases/
20080501051610 && (echo 2048 > /mnt/app/releases/20080501051610/
REVISION)
ro...@foo.bar.com's password:
...so I assume that the password prompt is what's preventing
capistrano from working. My question is, how do I get the instance to
not ask for a password?
Any & all advice is appreciated- thanks!
-Jason