|
Re: Capistrano 2.0.0 => 2.1.0 no prompt for SSH password, non-root user ca: msg#00168lang.ruby.capistrano.general
Thanks a lot. It works for me. I've pasted below my new options. I've another question: Is it possible to config capistrano to use "ssh -XaC" instead of "ssh", so I can forward my authentication agent and have access to the svn server without capistrano asking me for a password ? Thanks. # ============================================================================= # SSH OPTIONS # ============================================================================= ssh_options[:keys] = %w(~/.ssh/id_dsa) ssh_options[:forward_agent] = true # ============================================================================= # SVN OPTIONS # ============================================================================= default_run_options[:pty] = true set :scm_username, ENV['svn_user'] || ENV['USER'] || Proc.new { Capistrano::CLI.password_prompt('SVN User: ') } set :scm_password, Proc.new { Capistrano::CLI.password_prompt('SVN Password: ') } set :repository, "svn+ssh://#{scm_username}@babel.ls.fi.upm.es/srv/svn/ ggcc-questionnaire/trunk " On Nov 23, 12:59 am, Jamis Buck <ja...-uHoyYlH2B+GakBO8gow8eQ@xxxxxxxxxxxxxxxx> wrote: > cap2 uses scm_username and scm_password, rather than the svn_* > options that cap1 used. > > - Jamis > > On Nov 22, 2007, at 3:55 PM, VPC wrote: > > > > > Hi. > > > I'm using next options, and I found that capistrano doesn't asks me > > for the svn password, so it can't log into the svn account and > > download the updates. > > How can I do it? > > > Thanks in advance. > > > # > > ====================================================================== > > ======= > > # SVN OPTIONS > > # > > ====================================================================== > > ======= > > set :svn_user, ENV['svn_user'] || > > Proc.new { Capistrano::CLI.password_prompt('SVN User: ') } > > set :svn_password, Proc.new { Capistrano::CLI.password_prompt('SVN > > Password: ') } > > set :repository, > > "svn+ssh://#{svn_us...-fc2yyuIZbynPvaDv0MAzMN7lo5+wdyHW@xxxxxxxxxxxxxxxx/srv/svn/ggcc-questionnaire/ > > trunk" > > # Proc.new { "--username #{svn_user} " + > > # "--password #{svn_password} " + > > # "http://your.domain.tld/path/to/svn/#{application}/ > > trunk/" } > > > > > > > smime.p7s > 3KDownload |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | =?x-unknown?b?W0NhcGlzdHJhbm9dICgpKCgpKCkoKSoqKioqKSopKikqKikqKSkq?==?x-unknown?b?KikqKSopKikqKSogICAgICAgICAgICAgICAgICAgICAgICAgIA==?=: 00168, gh |
|---|---|
| Next by Date: | Cap 2.1, Rails 1.2.5, rake task, and Dreamhost problem...: 00168, ed_ruder |
| Previous by Thread: | Re: Capistrano 2.0.0 => 2.1.0 no prompt for SSH password, non-root user can't run "cap" at alli: 00168, Jamis Buck |
| Next by Thread: | cap deploy:cold ssh permission issue: 00168, Mike |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |