是否可以从本地主机连接到共享主机rsync守护进程?怎么样?

时间:2019-07-09 20:49:12

标签: daemon rsync

是否可以从本地主机连接到共享主机rsync守护进程?怎么样?

我已通过ssh登录到远程共享主机:

$ shh username@servername
$ used password here

我已经在共享主机上启动了rsync守护程序

$ rsync --daemon --config=/home/username/etc/rsyncd.conf

是否可以从本地主机连接到该守护程序?我想从本地主机传输文件而没有来自远程共享主机的密码提示=将本地更改与远程共享​​主机同步吗?以下命令不起作用。如果可能的话,正确的连接方式是什么?

rsync -rtv /localhost/directory-to-be-copied-to-remote   gintare@ayeaye.arvixe.com:1200::ntr --password-file /locahost/rsync.pswd

其中ntr是模块名称,在远程服务器/home/username/etc/rsyncd.conf中描述

#rsync daemon configuration file on remote shared host, 
#home/username/etc/rsyncd.conf
#these files are on remote shared host
log file = /home/username/var/log/rsyncd.log
pid file = /home/username/var/run/rsyncd.pid
port = 12000

[ntr]
   use chroot = no
   path = /home/username/public_html/remote-folder-where-i-want-copy-files-from-localhost
   comment = My Very Own Rsync Server
   uid = ntr
   gid = ntr
   read only = no
   list = yes
   auth users = ntr
   secrets file = /home/username/etc/rsyncd.scrt

0 个答案:

没有答案