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] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to