Hi all on an Ubuntu 14.04 server I've installed backuppc afresh, moved /var/lib/backuppc to /mnt/raid (a raid1 soft raid setup) and am in the process of configuring the last steps.
Web access is fine and I can add hosts etc but I've reached a stumbling block with the ssh-key setup. Following the backuppc install notes on the site I do: su - backuppc and would then expect to follow the prompts after doing ssh-keygen (which I've done successfully on another box, albeit on 12.04). However, I hit a snag with this: No directory, logging in with HOME=/ Permissions are such that backuppc cannot create a home directory for itself. So when I try and run ssh-keygen I get permission error if I try and save to default location from the command. Enter file in which to save the key (/home/backuppc/.ssh/id_rsa): Could not create directory '/home/backuppc/.ssh': No such file or directory Enter passphrase (empty for no passphrase): I've therefore tried to save to /var/lib/backuppc/.ssh/id_rsa as I know backuppc is the owner of /var/lib/backuppc.... but get this error: open /var/lib/backuppc/.ssh/id_rsa failed: No such file or directory. So I took the plunge and created /var/lib/backuppc/.ssh/ and created the public key there. And then run ssh-keygen -t rsa which completes with no error and an ls /var/lib/backuppc/.ssh/ shows the 2 files id_rsa an id.rsa.pub there If it then try and copy the file from backuppc to my target client with $ ssh-copy-id -i /var/lib/backuppc/.ssh/id_rsa.pub root@remoteserver I get this (this is sending to a Mac 10.5 server in case thats relevant) mktemp: failed to create file via template ‘//.ssh/ssh-copy-id_id.XXXXXXXXXX’: No such file or directory mktemp failed I suspect I'm making this more complicated and difficult than it really needs to be. And perhaps a simple tweak right at the outset to sort my lack of home directory on backuppc user or similar may be the solution. Or perhaps I need to enable root on the server? I've been banging my head against this metaphorical wall for some time now so anyone who has any suggestions please let me know. best. -- Tom ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/