Quote:
Originally Posted by hueofwind
But both two machines, for the security reason, root are disabled for login. In their sshd_config file
|
no root through ssh ok
Quote:
Originally Posted by hueofwind
But the problem is none of the two machines supports root login, which means if I ssh login to target machine then use rsync, I may not have access right to some directories on source machine.
|
smth like >
rsync -a -e ssh source/
root@remotemachine.com:/path/to/destination/
will not work because before the user is recognized by rsync it is prohibited by sshd right?
so instead what about doing it in this way (just an idea):
sshd at source allows port to be forwarded to whichever is the backup destination + ssh client at the destination is configured to accept the forwarded port
rsync runs locally on source and creates a backup
then through nc & the forwarded port backup file is being transfered to the target machine
do you think this would work in a cron script?