Kronos,
You can't do that, sorry - you will need to reconsider how your server
checks out from SVN, or how Capistrano connects... you can't run all
commands as another user, or borrow another user's keys, that's unix 101.
Happy to accept a patch to do what you want this to do, as the ability to
run something as a different user would be quite useful.

- Lee

2009/7/8 kronos <hro...@gmail.com>

>
> There are two users on my server. With the first one I connect with
> server using ssh keys. The second has keys on the server and can
> checkout repository via keys. I need to do something like this:
>
> ssh fi...@server
> sudo su second
> svn co svn+ssh://another_server
> exit
> exit
>
> I have following configuration:
> set :rails_env, :production
> set :application, 'CE'
> set :repository, 'svn+ssh://server_2'
> set :runner, 'second'
> set :user, 'first'
> set :deploy_to, '/var/www/CE'
>
> server "server_1", :app, :web
>
> I got this error:
>  ** [cedev2.zsupport.ru :: err] Permission denied (publickey,keyboard-
> interactive).
>  ** [cedev2.zsupport.ru :: err] svn: Connection closed unexpectedly
>
> What is wrong?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to capistrano@googlegroups.com
To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to