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

Re: scp



The best option is to use RSA authentication instead of password. Use
ssh-keygen to generate a public/private keyset, then copy the public key
into ~/.ssh/authorized_keys on the remote host. Then it will
authenticate without asking for a password. You must use a blank
passphrase for this to work.

Florian Steurer 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
> florian
> --
> Florian Steurer - ISPM, ++41 1 465 3786
> Web: http://www.alcatel.ch
> 
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
--------------------------------------------------------------
Andrew J. Perrin - Programmer/Analyst, Desktop Support
Children's Primary Care Research Group, UNC - Chapel Hill
(919)966-9394 * andrew_perrin@unc.edu



Reply to: