On 14-Mar-2001 Christoph Simon wrote: > On Wed, 14 Mar 2001 16:13:18 +0100 > Florian Steurer <[EMAIL PROTECTED]> wrote: > >> hi! >> I try to write a backup (shell-)script and use the "scp"-command. It >> asks for a password, how can I automize the passwort prompt -> I mean >> that the password is direct read from the shell script, without >> prompting. I tried something with pipes and > < , but doesn't work. I >> also tried the -B option...without any success... >> thanks for helping > > If you set up correctly the files on ~/.ssh, you shouldn't need a > password at all, although it won't work for root. But I didn't try it. YMMV.
Indeed: copy ~/.ssh/identity.pub to the remote machine's ~/.ssh/authorized_keys, and ssh/scp won't ask you for passwords. -- Carlos Laviola - ICQ 55799523 pub 1024D/3516D372 2000-06-05 Carlos Laviola <[EMAIL PROTECTED]> Key fingerprint = 3BE1 6591 C78C 2AA4 31DD AEEF 6406 0227 3516 D372
pgphGyylgHSZp.pgp
Description: PGP signature