rdiff-backup-users
[Top][All Lists]
Advanced

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

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


From: Chris G
Subject: [rdiff-backup-users] Re: Re: Can anyone explain this error when running rdiff-backup from cron?
Date: Mon, 22 Nov 2010 14:43:18 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Nov 22, 2010 at 03:27:10PM +0100, Andreas Olsson wrote:
> 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 
> /home/chris/backups/isbd",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty
>  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
> 
Ah, yes, that's an acceptable approach, thanks for the idea.

-- 
Chris Green



reply via email to

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