Hi Cory, Try this:
set :gateway, "[email protected]" Regards 2012/4/17 Cory Foy <[email protected]> > 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 > -- * 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
