Hello List, i need the feature of a password option (like --password) for scripting/testing purpose. I know its not secure and i am aware of that, i just need it for internal testing purpose. I did have a little look at the ssh source code, to see where i would hook in my code, but couldn't really find anything useful. I am really new to C. Is there a workaround or already an unofficial patch or something like that out there? Thanks, Mario
hkb2tw_ at ssl-mail.com wrote:> i need the feature of a password option (like --password) for > scripting/testing purpose. > > I know its not secure and i am aware of that, i just need it for > internal testing purpose.You might look at using expect. http://expect.nist.gov/ Or one of the expect follow-ons such as these perl modules: http://search.cpan.org/search?query=expect&mode=all Bob
On Sun, 22 May 2005 12:34:34 -0600, "Bob Proulx" <bob at proulx.com> said:> hkb2tw_ at ssl-mail.com wrote: > > i need the feature of a password option (like --password) for > > scripting/testing purpose. > > > > I know its not secure and i am aware of that, i just need it for > > internal testing purpose. > > You might look at using expect. > > http://expect.nist.gov/ > > Or one of the expect follow-ons such as these perl modules: > > http://search.cpan.org/search?query=expect&mode=all >I was rather looking forward to modify openssh source a little. Cheers, Mario -- hkb2tw_ at ssl-mail.com