码迷,mamicode.com
首页 > 其他好文 > 详细

ssh

时间:2018-04-24 11:09:14      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:only   syn   AC   nbsp   rda   roo   etc   direct   mit   

  • 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/

ssh

标签:only   syn   AC   nbsp   rda   roo   etc   direct   mit   

原文地址:https://www.cnblogs.com/anyu686/p/8924513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!