You can specify a user specifically for the gateway in the hostname:
set :gateway, "[EMAIL PROTECTED]"Alas, though, you can't set any other options that way...but note that you can specify a list of keys to try when logging in:
ssh_options[:keys] = %w(/path/to/first/key /path/to/next/key ...)All keys will be tried for all hosts. I've never needed this specific feature, but it _should_ work. :)
- Jamis On Apr 11, 2008, at 2:59 PM, Kali wrote:
Hi all, I'm working with a client where I have access to a gateway server, and from there I can SSH into the two app servers. My problem is that I have one SSH username and public key to access the gateway server, and once there a second set (different username/key) is required to access the app servers. Setting the :gateway option connects to the gateway host perfectly, but the subsequent connections to the app servers are using the same SSH options capistrano used to connect to the gateway. Is there a way to set a different gateway user and gateway ssh options? Thanks! -Kali --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
