I've done all of this .. put the keys into /home/deploy/.ssh
and changed to the clone URL which got me further ...

Now I get this:

Host key verification failed.

Is there a chance that Capistrano is running as root and trying to
use keys associated with root instead of user 'deploy'?

If so how do I setup the keys for that.

Todd

On Jun 10, 2:49 pm, "Scott Chacon" <[EMAIL PROTECTED]> wrote:
> > 1.  On the server would I execute this command:  ssh-keygen -t rsa?
> > 2.  On the server do I store the keys id_rsa & id_rsa.pub in /home/
> > deploy/.ssh?
> > 3.  Should I add the servers id_rsa.pub key to the 'deploy keys'
> > section of the private repo?
>
> Yes to all of these.  The first step should do the second automatically.
>
> > 4.  How does the server know to use ssh to get the code from the
> > repository?
>
> > [ my cap has this line in it now:  set :repository,  "git://github.com/
> > myapp/myapp.git" to access the public repo which works great ]
>
> You will need to change your :repository to your clone url, ie:
>
> set :repository, "[EMAIL PROTECTED]:myapp/myapp.git"
>
> In git, if there is no protocol specified like that, it assumes ssh.
> That line is equivalent to this one:
>
> set :repository, "ssh://[EMAIL PROTECTED]:myapp/myapp.git"
>
> Scott
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to