[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: urgent : ssh without password prompt and password client auth



On Tuesday, 03.05.2005 at 22:57 +0200, STEPHANE DURIEUX wrote:

> --- Dave Ewart <davee@sungate.co.uk> wrote:
> > On Tuesday, 03.05.2005 at 17:04 +0200, STEPHANE DURIEUX wrote:
> > 
> > > Well everything is in the title.  I would like to use ssh in
> > > scripts so without
> > entering
> > > the password.  The problem is that such commands don t work: echo
> > > passwd | ssh host (ssh doesn t read std
> > input)
> > 
> > You might be able to get 'expect' to do this, although ...
> > 
> > > I don t want to use private keys (so not 
> > ssh-agent).
> > 
> > using keys is really the best way.  Can you explain why you don't
> > want to use keys for this?  It's likely to be the best solution ...
>
> and thanks for your last reply I don t want to use a key pair cause I
> have to connect to several servers and I don't want to put a public
> key on each :)

(Please reply on-list, not off-list)

OK, although you're not really explaining *why* you don't want to do
this.

How about trying 'expect', as I suggest?  This is probably less secure
and more complicated than using keys, though.

Dave.
-- 
Please don't CC me on list messages!
...
Dave Ewart - davee@sungate.co.uk - jabber: davee@jabber.org
All email from me is now digitally signed, key from http://www.sungate.co.uk/
Fingerprint: AEC5 9360 0A35 7F66 66E9 82E4 9E10 6769 CD28 DA92

Attachment: signature.asc
Description: Digital signature


Reply to: