If that doesn't work, note that if ssh_options[:keys] is unset, Capistrano
will check for a running ssh-agent. If one is running, all of its keys will
be tried.

I'm fairly sure that there's no security risk involved in trying every key
on every host.

On Fri, Apr 11, 2008 at 4:08 PM, Jamis Buck <[EMAIL PROTECTED]> wrote:

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to