[Top][All Lists]

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

Re: [rdiff-backup-users] Re: Can anyone explain this error when running

From: Andreas Olsson
Subject: Re: [rdiff-backup-users] Re: Can anyone explain this error when running rdiff-backup from cron?
Date: Mon, 22 Nov 2010 15:27:10 +0100

mån 2010-11-22 klockan 14:10 +0000 skrev Chris G:
> Of course!  Thanks.  I used to have passwordless login which used to use
> an ssh-key without a passphrase but a while ago I changed to using a
> passphrase (the same as my login so I don't have to enter the
> passphrase) so of course the cron job doesn't work any more.
> Are there any ways to work around this problem so that the cron job can
> work but I can still have a passphrase protected ssh-key?

Not really. A second best solution might be to use a separate password
less key, with restrictions imposed on it in ~/.ssh/authorized_keys.

On cheddar.halon.org.uk you could put something like this in your
authorized_keys file.

command="/usr/bin/python /usr/bin/rdiff-backup --server --restrict 
 ssh-rsa AAAAB3NzaC1yc2EAAAA...

That way there will be less of an issue if the ssh key is "stolen".

Example on running rdiff-backup with an explicit ssh-key:

rdiff-backup --remote-schema 'ssh -i /home/foo/.ssh/backup2cheddar %s 
rdiff-backup --server' /home/isbd address@hidden::/home/chris/backups/isbd

Good luck!

// Andreas

Attachment: signature.asc
Description: Detta är en digitalt signerad meddelandedel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]