注:把端口改成自己需要设置的端口Port 22Protocol 2SyslogFacility AUTHPRIVPermitRootLogin noMaxAuthTries 3PermitEmptyPasswords noPasswordAuthentication yesChallengeResponseAuthentication noGSSAPIAuthentication yesGSSAPICleanupCredentials yesUsePAM yesAcceptEnv LANG LC
一.服务端1.安装Rsyncyum install rsync2.配置rsyncd.conf (需要手动建)vi /etc/rsyncd.conf------port = 55873 #端口,默认为873log file = /var/rsyncd.log #日志文件pid file = /var/rsyncd.pid #pid文件路径lock file = /var/rsyncd.lock #指定lock文件secrets file = /etc/rsyncd.pas #指定用户密