You might have some success with agent forwarding, but the problem will be that the ENV variable that exists as `boris` which contains the path to your ssh agen't socket won't survive the transition to the other user account.
You'll need to look at how to preserve environmental variables when doing SU. (and beware of what security implications that has) - you'll probably also find that the socket is owned by your user and not readable by deploy. The answer is "use deploy keys" and install one key from `deploy` on your server to the Github repository. Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 7 February 2013 11:42, Boris Quiroz <[email protected]> wrote: > Hi again, > > I'm having a problem and I'm not sure how to solve it or which is the best > approach to solve it (maybe is already solved). > > I have following configuration on my deploy.rb: > > ssh_options[:forward_agent] = true >> (...) >> set :scm, :git >> set :scm_user, ENV["user"] >> set :repository, "[email protected]:boris/myproject" >> set :deploy_via, :remote_cache > > > The problem is: As you can see I'm using my user (boris) as scm_user, but > I can not use that user on my servers to deploy. In fact, we use "deploy" > user for deployments. So I want to know: if there's a way to "pass" my > id_rsa so "deploy" user can authenticate on github? > Or I'm just doing everything wrong and this could be solved in another > easy way? :) > > Thanks. > > -- > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this > group at http://groups.google.com/group/capistrano?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
