I'm using capistrano 2.4.3 I'd like to modify deploy.rb to have Net::SSH use the User value in .ssh/config if it exists so I don't need to specifically add my username to deploy.rb.
My username on my local machine is 'stephen' however my username on most of the servers I deploy to is 'sbannasch'. I have my .ssh/config file setup to specify the default ssh user as 'sbannasch' $ cat ~/.ssh/config Protocol 2,1 ForwardX11 yes User sbannasch I also have an ssh-agent running to support ssh connection using my public key. When I run this task: desc "test connection" task :test_without_sudo do run "whoami" end I get this error: (Net::SSH::AuthenticationFailed: stephen) If I add: set :user, 'sbannasch' The task succeeds. Where is ssh_options documented (or implemented) -- I looked in the rdoc for Net::SSH and Cap. Thanks for any suggestions. --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
