/etc/ssh/sshd_config
PermitRootLogin yes
Port 22
PasswordAuthentication yes // set to no to enable key autentication only
/etc/ssh/ssh_config
sync two directory , and sync the deltar every time when it is runned
rsync -avzh /root/rpmpkgs /tmp/backups/
or
rsync -avzh rpmpkgs/ root@192.168.0.101:/home/
原文:https://www.cnblogs.com/anyu686/p/8924513.html