BackupPC-users

Re: [BackupPC-users] problems with linux host - Unable to read 4 bytes

2009-06-23 14:52:46
Subject: Re: [BackupPC-users] problems with linux host - Unable to read 4 bytes
From: Matthias Meyer <matthias.meyer AT gmx DOT li>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 23 Jun 2009 20:46:58 +0200
Nick Smith wrote:
> 
> Ok, new problem, i cant get the backuppc user to work with shared keys.
> Ive added the /var/lib/backuppc/.ssh/id_rsa.pub contents to the other
> linux box's
in /root/.ssh I assume.

> authorized_keys and _keys2 file and it always prompts for a password.
> The password
> doesnt work for the backuppc user.  I tried logging into the backup
> server as the user
> backuppc and it wont let me either.  Im trying the password i use to
> log into the web
> interface.  I dont recall setting up a backuppc user or its password,
> so im assuming
> that is the problem, but i figured it would be the same as the web
> interface.
The password for user backuppc in the web interface can differ from the
password for the linux user.
apache compare the password against the htpasswd or htdigest file.
Linux, on the other hand, compare it against the /etc/passwd.
> 
> What do i do at this point? reset the password for the backuppc user
> to something
> that i know? Im assuming this will break something with the backups if
> backuppc setup
> the account on installation and set the password to something and its
> using that password
> when it does its thing right?  Is there a better way to go about this?
> I dont want to screw up
> this box.
> 
> there is no /home/backuppc directory, i think its in
> /var/lib/backuppc, at least thats where
> the .ssh folder got installed to when i ran ssh-keygen.  Does the
> backuppc user even
> have rights to login to the box?
> 
Yes. $HOME of backuppc is /var/lib/backuppc.
If you are root on the server, try su backuppc and echo $HOME

> Starting to get confused.
> 
> thanks for the help.
> 

Keep in mind:
You have a user backuppc on your server. backuppc want to login to the
client as user root.
So you need the private key on server:/var/lib/backuppc/.ssh/id_rsa and the
public key on client:/root/.ssh/id_rsa.pub.

You can also try ssh-copy-id. It can prevent you from several mistakes ;-)

br
Matthias
-- 
Don't Panic


------------------------------------------------------------------------------
_______________________________________________
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>