On Tuesday, 03.05.2005 at 22:57 +0200, STEPHANE DURIEUX wrote: > --- Dave Ewart <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] - jabber: [EMAIL PROTECTED] 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
signature.asc
Description: Digital signature