Wow, thanks so much for the quick responses!

The first part (set :gateway, "[EMAIL PROTECTED]") works great.
Unfortunately, even after changing my ssh options to

   ssh_options[:keys] = %w(/path/to/local/key /path/to/key/on/remote)

I'm still prompted for a password. Is there any way to force using SSH
keys?  I've verified manually that the path to the remote key is
correct, so I'm a little stumped.

Thanks!
-Kali

$ cap --version
Capistrano v2.2.0
$ cap tail_logs
  * executing `tail_logs'
  * executing "tail -f /path/to/logs/production.log"
    servers: ["web01", "web02"]
  * establishing connection to gateway [EMAIL PROTECTED]'
    starting connection to gateway [EMAIL PROTECTED]'
    gateway connection established
  * establishing connection to `web01' via gateway
  * establishing connection to `web02' via gateway
Password:



On Apr 11, 2: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
> > >
>
>
>  smime.p7s
> 3KDownload

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