BackupPC-users

Re: [BackupPC-users] Mac client ssh setup

2011-03-23 14:22:24
Subject: Re: [BackupPC-users] Mac client ssh setup
From: Michael Conner <mdc1952 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 23 Mar 2011 13:20:16 -0500
On Mar 23, 2011, at 12:12 PM, Jeffrey J. Kosowsky wrote:

> Michael Conner wrote at about 08:37:33 -0500 on Wednesday, March 23, 2011:
>> I'm a newbie with limited Linux experience, but I've had BPC running for 
>> about a week on a test machine running Centos 5.5. So far I've successfully 
>> gotten backups for a Windows machine over SMB and another linux (CentOS) 
>> with rsync; however, I'm having trouble getting things to work for a Mac 
>> client running 10.6.6 and am hoping for some help.
>> 
>> I am using rsync xfer and have tried setting things up as I did for the 
>> linux machine: created a public key in /var/lib/backuppc/.ssh. For the linux 
>> machine, I copied that to root on the client with ssh-copy-id and everything 
>> worked fine. One the Mac, root is not enabled, so I copied the key to the 
>> user's home directory. That worked in that I can ssh from the BPC server to 
>> the Mac user without a password. 
> 
> Did you change the rsync line in the config.pl file to tell rsync to
> login as that user rather than to root? Otherwise how would rsync know
> which user to log in as.
> 
> e.g.,
> $Conf{RsyncClientCmd} = '$sshPath -q -x -l mac-user-name $host $rsyncPath 
> $argList+';
> 
That looks promising, thanks for noting it and expanding my understanding of 
one the parameters I've just glossed over so far because it seemed out of my 
league. I'll give this a try as well at some point. As I noted in another post, 
enabling root on the mac and copying the ssh key to it got things going before 
you suggested this.


> 
>> 
>> But when I try to run a backup on it, it fails with a "Unable to read 4 
>> bytes" error. I've tried a lot changes to user and share in the host config 
>> file, but nothing works (/ vs /user/home, backuppc vs mac user as user) and 
>> nothing has worked. From some web searching I may have to get a key from the 
>> Mac onto the BPC server, but there is also this 
>> http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=MacOS_X_secure_setup
>> in the wiki about setting up a backuppc user on the Mac.
>> 
> 
> Did you test the ssh login running as user backuppc? e.g., sudo -u
> backuppc ssh -l <mac-username> mac-machine-name
> 

Yes I did, though a little more clumsily. Some info on installing BPC under 
CentOS I have has you call up a shell for backuppc, do the key generation and 
copying within that, which is also where I tested the ssh originally.

Mike



------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>