Hi all,
I am trying to backup the files from a server's /home/user directory into my backup machine. So we call the VM where the files are "server" and the one that is supposed to keep the backed-up files "my-backup".
My local workstation is able to SSH to both pf these machine (server and backup) I need to run the rsync command to backup the files on server VM onto /srv/backup directory of my-backup machine. This is how I've done it but didn't work:
Code:
ssh -o StrictHostKeyChecking=no -R 50000:my-backup:22 server 'rsync -e "ssh -o StrictHostKeyChecking=no -p 50000" -vuar /home/user localhost:/srv/backup'
Error:
Code:
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
Any help would be much appreciated.