If my memory not fail.

You can set the user defining the host with this format:

user@server

Regards

PS: Sorry briefness, replying with my phone.
El 16/03/2012 18:42, "James" <[email protected]> escribió:

> Hi there,
>
> I'm trying to define different sets of ssh options for different roles
> listed in my capfile. I'd like three of my roles to have their ssh
> user be root, but two of my roles to be a different user with a custom
> ssh key.
>
> I can't see how to set ssh_options to be different for different
> roles: it looks to me like this is a standard hash that's parsed once
> and the last entry for any option overwrites any previous entry. I
> feel like I'm missing something incredibly obvious, though.
>
> I would simply use an ssh config file to resolve this issue, but I'm
> connecting through a gateway that I don't control.
>
> Thanks for any help you can give
>
> James
>
> --
> * 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 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

Reply via email to