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/ [email protected]:/home/

猜你喜欢

转载自www.cnblogs.com/anyu686/p/8924513.html
ssh