On Tue, 2004-05-11 at 18:33, Don Gould wrote:
> I want to set up a script to move a file from one server to another using
> ssh.
> 
> Can anyone point me to a template to do this?
> 
> I want to get cron to do this each day at 10:30pm (this bit I think I can
> work out for my self :)
> 
> I just don't know how to automate ssh.
> 
> Cheers Don

You want to use scp, not ssh - see the man pages.

To "automate" ssh and scp (they work on the same protocol and libraries)
you need to generate a private/public key pair and copy the public key
onto the remote machine. It goes in the remote user's home directory's
.ssh/authorized_keys file.

Vik :v)
-- 
This PC runs Linux. If you find a virus apparently from me, it has
forged the e-mail headers on someone else's machine. Please do not
notify me when this occurs. Thanks.

Reply via email to