Thanks for the quick reply Jamis. I've created a keypair on the
instance and copied to the "jason" account on foo.bar.com. Now
regular ssh from the shell to foo.bar.com works:
[EMAIL PROTECTED]:~# ssh -i ~/.ssh/id_rsa
[EMAIL PROTECTED] hostname
foo
Then I went to run the cap task again but got the same Host Key
Verification error again. I thought maybe I needed to put my username
in the URL, so I changed the :repository value in my deploy.rb to:
set :repository, "svn+ssh://[EMAIL PROTECTED]/svn/#{application}/code/
ror/tags/quez/12"
...then ran the cap task again but nothing changed, same error. Any
other ideas?
Thanks again for your help!
On Apr 30, 10:54 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> I'm not 100% sure what the "host key verification failed" error is
> about, but I suspect it is Subversion's SSH connection complaining
> that it cannot verify the host key of the host it is trying to connect
> to. Regarding passwordless authentication, you'll need to make sure
> that you have your keys set up such that you can ssh from the EC2
> instance to your "foo.bar.com" server (the one hosting your svn
> repository).
>
> - Jamis
>
> On Apr 30, 2008, at 11:45 PM, jfrankov wrote:
>
>
>
> > 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:
>
> > [EMAIL PROTECTED]:~# 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)
> > [EMAIL PROTECTED]'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
>
> > >
>
>
> smime.p7s
> 3KDownload
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---