Also sprach STEPHANE DURIEUX <[EMAIL PROTECTED]> (Tue, 3 May 2005 17:04:44 +0200 (CEST)): > Hello
hi > 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) > I don t want to use private keys (so not ssh-agent). > Does anyone has an idea (via environment variable > perhaps?) you want to generate a ssh-key (use ssh-keygen) and put it into the remtoe's machine ~/.ssh/authorized_keys. this way the user will be able to log on the remote box (from the one your have the key) _without_ password like "$ ssh <machine> <command>". be sure this auth-method ist enabled on the remote box (/etc/ssh/sshd_config). everything should be well documented in $ man sshd $ man ssh-keygen sl ritch. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]