Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 1999 03:03:12 -0800 (PST)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Sparky <mark@itsunix.uwc.ac.za>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Backups
Message-ID:  <Pine.BSF.4.21.9912010258200.4557-100000@fw.wintelcom.net>
In-Reply-To: <3844DCD2.32EFD7E5@itsunix.uwc.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 Dec 1999, Sparky wrote:

> Hello....
> 
> Can anyone help me?
> I want to do backups of 4 machines to a backup server ( all running
> Unix )
> 
> machine 1     LINUX REDHAT 6
> machine 2    SOLARIS 2.6
> machine 3    FREEBSD
> machine 4    LINUX REDHAT 6
> backup           FREEBSD
> 
> The idea is to use the crontab daemon to scp the machines necessary
> files to the backup server,
> and then for the backup server to....well of course back them up.
> 
> The first question is :
> 
> 1)    Is this way correct.
> 2)    How do I get the backup to accecpt scp connections without a
> password from only those               machines.
> 3)    How to set up the crontab file on the machines to perform the
> sending tasks.
> 
> I have tried to edit the sshd config files....but no luck.
> I have also tried some tests with crontab file ..... no luck.
> 
> Note:     You might wonder why I am asking these questions......well
> actually I am new to UNIX aprox   4 weeks. So all the advice would be
> appreciated.

Actually this is a side project i've been working on in my spare
time, meaning I haven't got passed the thinking about it stage. :)

The way I was going to do it is remarkably similar, the problem
you're having with ssh is that it won't take a password from
stdin.  A trick I came up with is to start an ssh-agent, ssh-add
which enters keys into the agent will take a passphrase on stdin
if you pass it a -p flag.

You can then stick a generated key into the remote backup user's
$HOME/.ssh/authorized_keys.

Read up on ssh-agent it should be a good start.

-Alfred



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.9912010258200.4557-100000>