Erazor could you add the line to your deploy.rb ?

ssh_options[:config]=false


Erazor wrote:
> Now I did a small research:
> My ssh_config explicitly mentions
> PasswordAuthentication yes
> and no word about PubkeyAuthentication (which leaves the default
> 'yes')
> Inserting the line
> PubkeyAuthentication yes
> fixes the problem.
> Removing the line about PasswordAuthentication also works.
>
> The code that checks the allowed authentication methods should use the
> same default values/resolution process as ssh itself to determine the
> allowed methods/sequence to use.
>
> Hope this helps.
> Stefan
>
> On 11 Feb., 07:45, Jamis Buck <[email protected]> wrote:
>   
>> Weird... I have no idea why 2.5.4 isn't trying publickey by default for
>> you. Capistrano should always be trying publickey first, then password.
>> There's something fishy there... I know publickey is picked up by
>> default in cap 2.5.4, because it's what I use, and I haven't had any
>> trouble with it.
>>
>> At any rate, I'm glad you found a workaround. I just wish I understood
>> why it was necessary.
>>
>> - Jamis
>>
>> On 2/10/09 11:32 PM, Erazor wrote:
>>
>>     
>>> Took a look at the outputs myself and found out the following:
>>> With above options 2.5.3 tries publickey and succeeds: (relevant lines
>>> only)
>>> D, [2009-02-11T06:57:44.873174 #4575] DEBUG --
>>> net.ssh.authentication.session[1555566972cc]: beginning authentication
>>> of `rails'
>>> D, [2009-02-11T06:57:44.915232 #4575] DEBUG --
>>> net.ssh.authentication.session[1555566972cc]: trying publickey
>>> D, [2009-02-11T06:57:44.915384 #4575] DEBUG --
>>> net.ssh.authentication.agent[155556695ef4]: connecting to ssh-agent
>>> D, [2009-02-11T06:57:44.916451 #4575] DEBUG --
>>> net.ssh.authentication.methods.publickey[155556695f6c]: trying
>>> publickey (###)
>>> D, [2009-02-11T06:57:44.921130 #4575] DEBUG --
>>> net.ssh.authentication.methods.publickey[155556695f6c]: publickey
>>> succeeded (###)
>>>       
>>> 2.5.4 tries only password authentification and fails, cause I forbid
>>> PAM in sshd-config:
>>> D, [2009-02-11T06:57:36.374398 #4571] DEBUG --
>>> net.ssh.authentication.session[1555566964a8]: beginning authentication
>>> of `rails'
>>> D, [2009-02-11T06:57:36.416597 #4571] DEBUG --
>>> net.ssh.authentication.session[1555566964a8]: trying password
>>> E, [2009-02-11T06:57:36.416709 #4571] ERROR --
>>> net.ssh.authentication.session[1555566964a8]: all authorization
>>> methods failed (tried password)
>>>       
>>> adding the following line to deploy.rb fixes this:
>>> ssh_options[:auth_methods] = "publickey"
>>>       
>>> Thanks for pointing me to the debug option.
>>> Stefan
>>>       
> >
>
>   


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

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[email protected]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to