ssh

  • 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/ root@192.168.0.101:/home/
posted @ 2018-04-24 04:15  anyu686  阅读(145)  评论(0编辑  收藏  举报