Re: ssh client password option

This is a discussion on Re: ssh client password option within the OpenSSH Development forums, part of the Networking and Network Related category; On Sun, 22 May 2005, Bob Proulx wrote: > hkb2tw_@ssl-mail.com wrote: > > i need the feature ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-23-2005
Jon Peatfield
 
Posts: n/a
Default Re: ssh client password option

On Sun, 22 May 2005, Bob Proulx wrote:

> hkb2tw_@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 find it easier to get openssh to use it's ssh_askpass code, pointed at a
script to echo the required password. No expect or anything needed,
though one does (seem to) need to fool openssh into thinking that it
doesn't have a controlling terminal (if it would otherwise have one), e.g.
by using setsid on systems which support that.

By default iff there is a controlling terminal ssh prompts for the
password there, otherwise it calls the ssh_askpass. At some point I did
intend to add an option hack to tell ssh to ignore the controlling
terminal and always use ssh-askpass -- some people prefer the ssh-askpass
password prompts.

e.g. on a linux system with setsid:

SSH_ASKPASS=~/mypass setsid ssh -vvv testacc@foobar uptime

where ~/mypass is (in this case) just:

echo "wibble"

Not that this is a very sane password...

-- Jon

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0