BackupPC-users

Re: [BackupPC-users] Using SSH with private/public key with passphrase.

2008-04-08 02:59:38
Subject: Re: [BackupPC-users] Using SSH with private/public key with passphrase.
From: Tino Schwarze <backuppc.lists AT tisc DOT de>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 8 Apr 2008 08:59:10 +0200
Hi,

On Tue, Apr 08, 2008 at 08:50:18AM +0200, romain.pichard AT valeo DOT com wrote:

> I would like to know if it's possible to use BackupPC over SSH with
> public/private key with a passphrase (and add this passphrase to the line
> command of BackupPC) ?

You gain absolutely nothing by assigning a passphrase to the key and
then having the passphrase on the command line. If anybody get's your
private key (and therefore is on your BackupPC server already), he/she
will be able to retrieve the passphrase as well - especially since the
ssh command line is visible for the whole duration of the backup.

> I read a tutorial without passphrase but I don't now if it's possible with
> it.
> 
> If it's possible, can you explain me how do that ?

You could use ssh-agent to protect the private key and run it manually
as the backuppc user - I've done that for my home backup to an external
USB drive. Everything is stored on the drive, including the private key
which gains root access to several systems. So I passphrase-protected it
and you need to run ssh-agent before backuppc and enter the passphrase
manually.

Bye,

Tino.

-- 
„Es gibt keinen Weg zum Frieden. Der Frieden ist der Weg.” (Mahatma Gandhi)

www.craniosacralzentrum.de
www.forteego.de

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/