Hey Cory,
I have to implement a similiar setup to yours, where theres a gateway
server between me and the deployment server. Did you ever get this working?
On Monday, April 16, 2012 6:34:29 PM UTC-7, Cory Foy wrote:
>
> Hi All,
>
> I have a not-so-abnormal setup of a server which is behind a gateway.
> The gateway access is available with SSH, and once there, I can ssh to
> the target server without a password.
>
> The gateway and target servers have different usernames (target is
> running as root - I know, I didn't set it up). I've read many article
> on Gateway setup, and have something like this:
>
> config/deploy.rb
> set :gateway, "dialup.ssh.server"
> set :user "my_user_name"
> set :ssh_options, {:forward_agent => true}
> #other options
>
> config/deploy/staging.rb
> server "internal.server", :app, :web, :db, :primary => true, :user =>
> 'root'
> #other options
>
> When I run cap deploy:setup it connects to the gateway fine, then it
> attempts to connect to my internal server, which fails with a
> Net::SSH::AuthenticationFailed: root error.
>
> What I've tried:
> server "internal.server", :app, :web, :db, :primary => true, :user =>
> 'root', :password => nil
> server "internal.server", :app, :web, :db, :primary => true, :user =>
> 'root', :auth_methods => ["publickey", "hostbased"]
>
> Any other suggestions?
>
> Cory
>
--
* 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