buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc-André Laverdière <marcandre.laverdi...@gmail.com>
Subject Re: Patch for forcing password auth only in SSH/SFTP
Date Fri, 03 Jun 2011 10:36:19 GMT
Hello everyone,

At last, I managed to figure out something.
It is a bit crude, but it works.

The way to send the SSH options is like this:
repositories.release_to[:options]=
 {:ssh_options=>{:auth_methods=> 'password'}}

The patch is attached :)


On 5/31/11, Marc-André Laverdière <marcandre.laverdiere@gmail.com> wrote:
> By the way, I tried with PasswordAuthentication yes and that didn't help.
>
>
> On 5/7/11, Marc-André Laverdière <marcandre.laverdiere@gmail.com> wrote:
>> I will try that. It would be nice to document that thing though. I had an
>> entry in that file but I did not know I could use it.
>> On 06-May-2011 11:28 PM, "Alex Boisvert" <alex.boisvert@gmail.com> wrote:
>>> /5/5 Marc-André Laverdière <marcandre.laverdiere@gmail.com>
>>>
>>>> Hello everyone,
>>>>
>>>> Here is my first patch for buildr. I hope that many more are coming :)
>>>>
>>>
>>> Hi Marc-André,
>>>
>>> I can see how that fixes the problem for you -- however it would likely
>> not
>>> work for other people who rely on key-based auth.
>>>
>>> The usual place for this kind of configuration is your ~/.ssh/config
>>> file
>>> where you can define host-specific settings.
>>>
>>> Here are the options that net:ssh supports,
>>> http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH/Config.html
>>>
>>> Perhaps you can try adding "PasswordAuthentication yes" in your
>>> ~/.ssh/config and see if that works.
>>>
>>> <http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH/Config.html>alex
>>
>
>
> --
> Marc-André LAVERDIÈRE
> "Perseverance must finish its work so that you may be mature and complete,
> not lacking anything." -James 1:4
> http://asimplediscipleslife.blogspot.com/
> mlaverd.theunixplace.com
>


-- 
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com

Mime
View raw message