Ming,

Just for the record, you are dissuaded to use DNS to resolve remote servers,
sometimes (like when you don't think to check DNS) – you might be tempted to
remove your ~/.ssh/known_hosts line, and that can happen (especially ec2)

Good luck, and happy hacking

- Lee

On 29 May 2010 09:43, Ming <[email protected]> wrote:

> Solved.  My dns was pointing to the wrong server.
>
> Have a good time at EuRuKo.
>
> -Ming
>
> On May 28, 4:33 pm, Ming <[email protected]> wrote:
> > Hi Lee,
> >
> > Thanks for taking time from EuRuKo to field my query.
> >
> > The dev box is Ubuntu 10.04 x32 and the deployment server is Ubuntu
> > 9.10 x64.
> >
> > I'm testing ssh from the command line by typing
> >
> >    "ssh [email protected]"
> >
> > as the development user.
> >
> > The capistrano recipe has the standard git and deploy users.
> >
> > Is there some other way I should be testing ssh from the command line?
> >
> > -Ming
> >
> > On May 28, 12:34 pm, Lee Hambley <[email protected]> wrote:
> >
> >
> >
> > > Ming,
> >
> > > That looks like you checked all the obvious things – what platform are
> you
> > > running? (First guess, is that you are using another user, on the
> > > command-line, versus the capistrano environment (NeT::SH figures out a
> lot
> > > from the current user, or some environmental vars, or the ~/.ssh/config
> > > file)
> >
> > > (sorry, I'm at EuRuKo in Krakau this weekend, and don't have a lot of
> time
> > > online to assist.)
> >
> > > - Lee
> >
> > > On 28 May 2010 18:02, Ming <[email protected]> wrote:
> >
> > > > I should add that "cap deploy:setup" fails automatically with the
> >
> > > > ssh_options[:auth_methods] = "publickey"
> >
> > > > and fails after I enter something for password without the same
> option.
> >
> > > > ssh works just fine from the command-line, passwordless.
> >
> > > > ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
> >
> > > > net-ssh is current.
> >
> > > > On Fri, May 28, 2010 at 11:56 AM, Ming <[email protected]> wrote:
> >
> > > >> This problem has been stumping me for too many hours.
> >
> > > >> I have an existing merb project that deploys to the production
> server
> > > >> just fine using capistrano.
> >
> > > >> My second project, rails, from the same development machine to the
> > > >> same production server, using the same recipe, application name and
> > > >> git locations changed, asks me for a password every time I execute
> > > >> "cap deploy:setup"
> >
> > > >> Net::SSH tries the correct public key twice before failing:
> >
> > > >> D, [2010-05-28T11:44:42.485557 #13264] DEBUG --
> > > >> net.ssh.authentication.methods.publickey[3f9264c0b9cc]: trying
> > > >> publickey (XXX)
> >
> > > >> D, [2010-05-28T11:44:42.485791 #13264] DEBUG --
> > > >> tcpsocket[3f9264c8ac2c]: queueing packet nr 6 type 50 len 604
> > > >> D, [2010-05-28T11:44:42.485980 #13264] DEBUG --
> > > >> tcpsocket[3f9264c8ac2c]: sent 628 bytes
> > > >> D, [2010-05-28T11:44:42.583751 #13264] DEBUG --
> > > >> tcpsocket[3f9264c8ac2c]: read 52 bytes
> > > >> D, [2010-05-28T11:44:42.584790 #13264] DEBUG --
> > > >> tcpsocket[3f9264c8ac2c]: received packet nr 6 type 51 len 28
> > > >> D, [2010-05-28T11:44:42.585129 #13264] DEBUG --
> > > >> net.ssh.authentication.session[3f9264c0cdf4]: allowed methods:
> > > >> publickey
> > > >> E, [2010-05-28T11:44:42.585266 #13264] ERROR --
> > > >> net.ssh.authentication.session[3f9264c0cdf4]: all authorization
> > > >> methods failed (tried publickey)
> > > >> connection failed for: federalqa.com(Net::SSH::AuthenticationFailed:
> > > >> deploy)
> >
> > > >> I found a panopoly of similar reports and suggested solutions but
> none
> > > >> of them work.  This is what the top of my deploy.rb file looks like
> > > >> after all the attempted solutions:
> >
> > > >> default_run_options[:pty] = true
> > > >> ssh_options[:forward_agent] = true
> > > >> ssh_options[:verbose] = :debug
> > > >> ssh_options[:auth_methods] = "publickey"
> > > >> ssh_options[:keys] = %w(~/.ssh/id_rsa)
> >
> > > >  --
> > > > * 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]<capistrano%[email protected]>
> <capistrano%2bunsubscr...@googlegrou ps.com>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]<capistrano%[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

Reply via email to