Re: Automatic Remote File Transfer


Subject: Re: Automatic Remote File Transfer
From: Jamie Hushower (hushower@ak.net)
Date: Fri Oct 03 2003 - 12:19:36 AKDT


I use scp for a lot of trivial backup jobs. You can enter the public ssh key
of the requesting computer into the "~/.ssh/authorized_keys" file on the
target to alleviate the need for entering a password. Be careful with adding
authorized keys. You might want to create a special user with access only to
the files that need to be backed up and ssh from that account (ssh -l
username or ssh username@host.domain). You can create a file that contains
your public key by running "ssh-keygen -t dsa" from ~/.ssh. Copy the
contents to the "authorized_keys" file on the host computer. Make sure you
copy the public key and not the private. Take a look at Unison (search
Google) for a good implementation of using scp for backup or
synchronization.

-Jamie
_____________________________________
Jamie Hushower
Computer Consultant
Rent-A-Geek
223-9136
----- Original Message -----
From: "KSchneider" <krs@ferocitydesign.com>
To: <aklug@aklug.org>
Sent: Friday, October 03, 2003 11:35 AM
Subject: Automatic Remote File Transfer

>
> Hi there --
>
> I'm attempting to compose a very basic shell script to send a file from
one
> server to another (remote backup) that will be automated. Naturally,
there
> are decent security measures in place, so I can't just use ftp (nor would
I
> want to). scp doesn't seem to have a password argument, so are there any
> common practices for this? What do you folks do for remote backup?
>
> Thanks,
> Kate
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Fri Oct 03 2003 - 12:16:58 AKDT