Okay, guys point taken ;)
Mike Knell (mike.knell at cs.tcd.ie) blathered:
>>> > I've written a script that takes a file, gzips it and is supposed to scp
> > it up to a server on the web. I say supposed to because I can't figure
> > out how exactly to pass a password to scp automatically.
>> The best suggestion here is that RSA authentication is your friend. It's
> possible you can do something dodgy with scripts, but the far, far
> better option is to set up RSA keys and authenticate things that way -
> see the man page for ssh.
>> Passwords in scripts give me the willies.
> Computer Science System Administrator, Trinity College, Dublin, Ireland
>mike.knell at cs.tcd.ie -=- http://www.cs.tcd.ie/Mike.Knell/>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie>>
"God, root -- what is difference?" -- Pitr
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!