On 2/10/20 03:26, David Hoskinson wrote:
Investigating your tip but here is what i get
Last login: Thu Oct 1 13:09:08 2020 from 10.60.2.25
[root@asbackup1 ~]# su -s /bin/bash backuppc
bash-4.4$ ssh-copy-id -i .ssh/id_rsa.pub 'root@vpnsvr'
/usr/bin/ssh-copy-id: ERROR: failed to open ID file '.ssh/id_rsa.pub':
Permission denied
bash-4.4$ ll
bash: ll: command not found
bash-4.4$ ls -al
ls: cannot open directory '.': Permission denied
bash-4.4$
To accept the host key, all you need to do is:
su -s /bin/sh backuppc
ssh root@client
You don't actually need to authenticate. However, the reason you
couldn't copy the ssh key across (which is what ssh-copy-id would do),
is that you are probably not in the right directory.
su -s /bin/sh backuppc
cd ~
ssh-copy-id root@client
That should work better, though maybe you already copied the key across
using some other method.
Regards,
Adam
------------------------------------------------------------------------
*From: *"Greg Harris" <ghar...@teamexpansion.org>
*To: *"backuppc-users" <backuppc-users@lists.sourceforge.net>
*Sent: *Thursday, October 1, 2020 1:06:28 PM
*Subject: *Re: [BackupPC-users] First backup failing Host Key and No
files dumped
CAUTION: This email originated from outside your organization.
Exercise caution when opening attachments or clicking links,
especially from unknown senders.
David,
The backuppc user generally doesn’t have shell access. You should be
able to use something like:
su -s /bin/bash backuppc
ssh-copy-id -i .ssh/id_rsa.pub
<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fid_rsa.pub&c=E,1,82IDWb-eudNlyvLMDJBuMLdSFXVbDrhyFpjNYS_XIRKpn7MubjAbeeOuttgj2AvaCS4X-T6od9gb1c7wVVCXcaZRsPeYIgD-GY_BT3fd&typo=1>
‘r...@client.to <mailto:r...@client.to>.backup'
exit
On the server, you can add shell access to the backuppc user with:
usermod -s /bin/bash backuppc
Thanks,
Greg Harris
On Oct 1, 2020, at 12:00 PM, David Hoskinson
<david.hoskin...@astroshapes.com
<mailto:david.hoskin...@astroshapes.com>> wrote:
Hello all
I am doing a new install of BackupPC 4.4.0 and am having issues
with my first backup
XferLOG file /backup/astrobackup//pc/namesvr1/XferLOG.0.z created
2020-10-01 11:45:54
Backup prep: type = full, case = 1, inPlace = 1, doDuplicate = 0,
newBkupNum = 0, newBkupIdx = 0, lastBkupNum = , lastBkupIdx =
(FillCycle = 0, noFillCnt = )
Running: /usr/bin/rsync_bpc --bpc-top-dir /backup/astrobackup/
--bpc-host-name namesvr1 --bpc-share-name /etc/named/
--bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum -1
--bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 --bpc-log-level 6
--bpc-attrib-new -e /usr/bin/ssh\ -l\ root
--rsync-path=/usr/bin/rsync --numeric-ids --perms --owner --group
-D --links --hard-links --times --block-size=2048 --recursive
--checksum --timeout=72000 namesvr1:/etc/named/ /
full backup started for directory /etc/named/
Xfer PIDs are now 2766
This is the rsync child about to exec /usr/bin/rsync_bpc
bpc_path_create(/backup/astrobackup//pc/namesvr1/0)
bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0,
KeepOldAttribFiles = 0
Host key verification failed.
rsync_bpc: connection unexpectedly closed (0 bytes received so
far) [Receiver]
bpc_sysCall_cleanup: doneInit = 1
RefCnt Deltas for new backup
Uncompressed HT:
Compressed HT:
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0
filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
Parsing done: nFilesTotal = 0
rsync error: unexplained error (code 255) at io.c(226)
[Receiver=3.1.2.0]
rsync_bpc exited with fatal status 255 (65280) (rsync error:
unexplained error (code 255) at io.c(226) [Receiver=3.1.2.0])
Xfer PIDs are now
Got fatal error during xfer (No files dumped for share /etc/named/)
Backup aborted (No files dumped for share /etc/named/)
I have created root ssh keys and added them to authorized_keys on
the client.
We have a older 3.3 version that is running, but this is a new
install on a new box. I can't seem to find anything. I think the
host key verification is the clue. Should i be able to login into
the client from the server as backuppc? Currently no passwd is
set on that account so i can't ssh to the client and accept the
figure print.
Thanks for any help or leads
David Hoskinson
Systems Administrator
Ext 226
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
<mailto:BackupPC-users@lists.sourceforge.net>
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fbackuppc.github.io%2fbackuppc%2f&c=E,1,tlGEO_RyljuRR0CQDOb1C1IjG1cEzsEg5ljPxbHjK_1kESksKxoKWshZVvwtaxWX-SMc81OjsVnWtaAXH7V9nFYftZiFCi6sbL-gGqYpxZw0zGM,&typo=1>
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project:
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fbackuppc.github.io%2fbackuppc%2f&c=E,1,FQEdwIy9UruwumjoKB4sZn6iOXdkhxv649tBHFXTeJYtQTwSUoHttSkB_m1cVPeO88hgxfXF4OjTOzS1vf5dj-6ubKBd1XxHuQa9IV_0KJKuT32Mtgq7T7BD&typo=1
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/