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/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324843440&siteId=291194637
ssh