BackupPC-users

Re: [BackupPC-users] Permissions problem?

2017-01-19 03:53:13
Subject: Re: [BackupPC-users] Permissions problem?
From: Jan Stransky <jan.stransky.ccp4 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 19 Jan 2017 09:52:28 +0100
OpenSSH package has utility "ssh-copy-id". You run it from machine from 
which you want to connect and generated key files (ssh-keygen utility), 
give credentials (user and hostname where you want connect) for first 
time and it does everything necessary. You could try it even for cygwin.

Private key file (SSH ones) generally doesn't have any suffix, public 
keys have .pub

Also note, that file .ssh/authorized_keys has to have rights set to 600.

Jan



On 01/19/2017 02:44 AM, TE Dukes wrote:
> Hello,
>
> Been working on this and I'm stuck. After realizing I didn't have rsync
> configured on my server and banning myself with too many attempts, I finally
> made some head way.
>
> I can use rsync  to backup a local machine here at home using:
>
> rsync -avr --delete /cygdrive/c/Temp/phpbrew/ 192.168.1.110::edukes1
>
> I can backup my laptop at work to my server here at home with:
>
> rsync -avr --delete -e ssh  /cygdrive/c/Users/Thomas\ E\ Dukes/Documents/
> tdukes AT ts130.xxxxxxxxx DOT com::asus
> (may not be exactly right, but close, going from memory)
>
> In the above examples, I am executing the commands as tdukes.
>
> Do I need to add root's public key in tdukes  ~/.ssh/authorized_keys? Or
> should I change the user  to tdukes in config.pl or educes.pl and asus.pl?
>
> I think the below error is a permissions problem. I read in the BackupPC FAQ
> that I need to add the clients machine's public key to the host in addition
> to the user's public key. Not sure how to do that on windows box. I thought
> host files were .pem
>
> full backup started for directory phpbrew
> Running: /usr/bin/ssh -q -x -l root edukes1 /usr/bin/rsync --server --sender
> --numeric-ids --perms --owner --group -D --links --hard-links --times
> --block-size=2048 --recursive --ignore-times . phpbrew/
> Xfer PIDs are now 14408
> Read EOF: Connection reset by peer
> Tried again: got 0 bytes
> Done: 0 files, 0 bytes
> Got fatal error during xfer (Unable to read 4 bytes)
> Backup aborted (Unable to read 4 bytes)
> Not saving this as a partial backup since it has fewer files than the prior
> one (got 0 and 0 files versus 0)
>
> I have googled and googled.
>
> As always, any help is greatly appreciated.
>
> Eddie
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> 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/


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
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>