I have a backup script that is failing for one user and was hoping some of you could point me in the right direction. I think I'm close, but worried to make any mistakes. The destination server is a jail SCP environment with 4 different users/home folders. The backup server is able to backup 3 of the 4 user/folders, but fails for one user of them each time. They all use the same SSH key and ref the same keyfile.
I'm not sure how this happened, but would like to see how I can get the user4 backing up again. I'm not sure how to do it without creating a new key or something like that, but don't want to break the other users. Basically, I just want to add the 4th user back in to the mix so he can use the key.
Here's whats happening.
chen-backup (backup server) dest-server (destination server, SCP jailed, 4 home directories that are being backed up, each home directory has ownership from user1, user2, user3 and user4::user4 cannot backup)
Script runs on chen-backup, using rsync and a config file located in root/.ssh/chebackconfig
chbackconfig: Host dest-server Hostname dest-server.apples.com IdentityFile ~/.ssh/dest_backup_id
The SSH file for dest_backup_id is just a normal SSH file.
If I run ssh user4@dest-server I get prompted for a PW (that I don't know). If I run that for every other user, it just lets me in without any issues. If I go on to the destination server and change the PW for User4, will I have to create a new ssh-keygen? Also, if I change user4 PWs, will that break the keys that other systems are using to access dest server?
I guess I'm having a bit of a hard time fully understanding the keys and stuff.