It is likely the way you set up the client key. Here are my notes to setup a client key. This "Unable to read 4 bytes" also drove me crazy. In this case BackupPC user is apache.
Setting Up SSH for Rsync for Linux Clients. To use SSH you must create a certificate on the BackupPC Server and copy it to the Linux Client machine. SSH Files: ssh config file: /etc/ssh/sshd_config ssh logs: /var/log/secure You will need this ftp program so: yum install ncftp You will need this Perl module on the client: cpan cpan> install File::RsyncP Then exit cpan: cpan> exit On the BackupPC Server create a login shell for the BACKUPPCUSER which in this case apache. You will also have create a directory for the certificate: Log in as root: mkdir /var/www/.ssh chsh apache Changing shell for apache. /bin/bash Login as apache and create a certificate: su apache ssh-keygen -t dsa Generating public/private dsa key pair. Accept the defaults, enter return for all questions - enter nothing for the pass phrase so the results are: Generating public/private dsa key pair. Enter file in which to save the key (/var/www/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /var/www/.ssh/id_dsa. Your public key has been saved in /var/www/.ssh/id_dsa.pub. The key fingerprint is: 14:ef:71:5c:s7:5e:d0:ed:9a:b9:21:89:7a:e1:e7:f1 [EMAIL PROTECTED] XXX.XXX.XXX.238 scp /var/www/.ssh/id_dsa.pub XXX.XXX.XXX.238:/root/.ssh/authorized_keys2 Now login as root and copy the key to the linux client: su root Password: Copy the key to the Linux Client computer, in this case the ip address is XXX.XXX.XXX.XXX. scp /var/www/.ssh/id_dsa.pub XXX.XXX.XXX.XXX:/root/.ssh/authorized_keys2 The authenticity of host '10.0.0.100 (10.0.0.100)' can't be established. RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'XXX.XXX.XXX.XXX' (RSA) to the list of known hosts. [EMAIL PROTECTED]'s password: id_dsa.pub 100% 606 0.0KB/s 00:00 Then exit: exit XXX.XXX.XXX.238 ssh -l root XXX.XXX.XXX.238 whoami Now test the login, eventually you should get just root with no password required: ssh -l root XXX.XXX.XXX.231 whoami Results: root Then exit: exit > Hi, > > I seem to be having an issue with backing up a client via rsync. The > client is a VMware ESX host (modified RedHat install). > I have browsed all the archives I can find and followed them as best I > can. If I issue the following command from the backuppc server > > ssh -l root 10.10.137.231 whoami > > from either the root account or the backuppc account I get a reply of > > root > > without having to enter anything (ie/. Does not prompt for a password or > to accept a key). > From the backuppc server I have also entered: > > su - backuppc -s /bin/bash > > and then I try and run the backup manually to see what happens here is > the command I have used: > > /usr/share/backuppc/bin/BackupPC_dump -v -f mnfsbvm1 > > and I get the following: > > cmdSystemOrEval: about to system /bin/ping -c 1 mnfsbvm1 > cmdSystemOrEval: finished: got output PING mnfsbvm1 (10.10.137.231) > 56(84) bytes of data. > 64 bytes from mnfsbvm1 (10.10.137.231): icmp_seq=1 ttl=255 time=1.14 ms > > --- mnfsbvm1 ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 1.148/1.148/1.148/0.000 ms > > cmdSystemOrEval: about to system /bin/ping -c 1 mnfsbvm1 > cmdSystemOrEval: finished: got output PING mnfsbvm1 (10.10.137.231) > 56(84) bytes of data. > 64 bytes from mnfsbvm1 (10.10.137.231): icmp_seq=1 ttl=255 time=1.18 ms > > --- mnfsbvm1 ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 1.186/1.186/1.186/0.000 ms > > CheckHostAlive: returning 1.18 > started full dump, share=vmconfigs > Connected to mnfsbvm1:873, remote version 26 > Connected to module vmconfigs > Sending args: --server --sender --numeric-ids --perms --owner --group > --devices --links --times --block-size=2048 --recursive > --checksum-seed=32761 --include=/ --ignore-times . . > Read EOF: > Tried again: got 0 bytes > Done: 0 files, 0 bytes > Got fatal error during xfer (Unable to read 4 bytes) > cmdSystemOrEval: about to system /bin/ping -c 1 mnfsbvm1 > cmdSystemOrEval: finished: got output PING mnfsbvm1 (10.10.137.231) > 56(84) bytes of data. > 64 bytes from mnfsbvm1 (10.10.137.231): icmp_seq=1 ttl=255 time=1.14 ms > > --- mnfsbvm1 ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 1.144/1.144/1.144/0.000 ms > > cmdSystemOrEval: about to system /bin/ping -c 1 mnfsbvm1 > cmdSystemOrEval: finished: got output PING mnfsbvm1 (10.10.137.231) > 56(84) bytes of data. > 64 bytes from mnfsbvm1 (10.10.137.231): icmp_seq=1 ttl=255 time=1.41 ms > > --- mnfsbvm1 ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 1.412/1.412/1.412/0.000 ms > > CheckHostAlive: returning 1.41 > Backup aborted (Unable to read 4 bytes) > dump failed: Unable to read 4 bytes > > > I am really lost on this one if someone has any ideas it would be most > appreciated. > > Thanks > > Justin > > PS Thanks for the great software, it truly rocks. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/backuppc-users > http://backuppc.sourceforge.net/ > -- Ken Gregoire Gordian Data Inc. www.gordiandata.com [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/