- ssh server config
/etc/ssh/sshd_config
PermitRootLogin yes
Port 22
PasswordAuthentication yes // set to no to enable key autentication only
- ssh client config
/etc/ssh/ssh_config
- rsync
sync two directory , and sync the deltar every time when it is runned
rsync -avzh /root/rpmpkgs /tmp/backups/
or
rsync -avzh rpmpkgs/ [email protected]:/home/