logo       

Password isn't being asked anymore: msg#00099

lang.ruby.capistrano.general

Subject: Password isn't being asked anymore

Hi,

So last friday I'd set up perfectly fine running capfile + deploy.rb scripts, but due to a server reboot over the weekend my mongrel servers weren't up anymore. Thinking I could simply start them again with cap deploy:start I suddenly am unable to connect to the server. 

I'm connecting via a gateway. Friday I only had to the enter the password to the gateway once, and it was remembered for subsequent calls to cap. It would however always ask me for the password to the server behind the gateway.

Now however, every time I try cap (in vain), I have to enter the password to the gateway server each and every time, and when it tries to connect to the server which is behind the gateway it does not ask for a password.

I tried ssh'ing manually, and that works fine, no problem.

Any idea why cap is failing on me suddenly??

I've tried ssh_options[:verbose] = :debug, but that's not really helpful cq unreadable gibberish to me.... are there any other options??

(are the ssh_options btw applied to session to the gateway, and/or from the gateway to the app server?)

  * executing `deploy:check'
  * executing "test -d /var/www/myproject/releases"
    servers: ["10.0.0.20"]
  * establishing connection to gateway `myuser-D4qZEMI14/jqlBn2x/YWAg@xxxxxxxxxxxxxxxx'
    starting connection to gateway `myuser-D4qZEMI14/jqlBn2x/YWAg@xxxxxxxxxxxxxxxx'
Password:
    gateway connection established
  * establishing connection to `10.0.0.20' via gateway
Net::SSH::AuthenticationFailed: capuser
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/session.rb:143:in `init
ialize'
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh.rb:47:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh.rb:47:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/ssh.rb:99:in `con
nect'




Cheers,
Lawrence

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise