兄弟们有用ubunt装rsync成功的吗。
-
- 帖子: 40
- 注册时间: 2007-02-26 11:09
兄弟们有用ubunt装rsync成功的吗。
兄弟们有用ubunt装rsync成功的吗。serever或桌面的都算,有的话能把文档发上来共享一下吗。
-
- 帖子: 54
- 注册时间: 2006-05-04 20:04
Re: 兄弟们有用ubunt装rsync成功的吗。
默认不是装了rsync了吗?你想用rsync的哪种传输模式?c/s还是通过ssh?cmwfox 写了:兄弟们有用ubunt装rsync成功的吗。serever或桌面的都算,有的话能把文档发上来共享一下吗。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 86
- 注册时间: 2006-11-28 22:29
-
- 帖子: 40
- 注册时间: 2007-02-26 11:09
用的是ubuntu6.10 server
2. 配置/etc/rsyncd.conf
root@fox:/home/rsync-acl-2.6.9# vim /etc/rsyncd.conf
uid=nobody
gid=nobody
max connections=4
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock
secrets file=/etc/rsync.pwd
[fox]
path=/home/fox/web
comment=foxfoxfoxfoxfox miao shu
ignore errors
read only=no
list=yes
auth users=fox
#host allow=1.1.1.6/29
root@fox:/home/rsync-acl-2.6.9# echo "fox:fox" > /etc/rsync.pwd
root@fox:/home/rsync-acl-2.6.9# chmod 600 /etc/rsync.pwd
root@fox:/home/rsync-acl-2.6.9# rsync --daemon
安装完成后在客户端作的测试
root@fox:~# echo "fox" > /etc/rsync.pwd
root@fox:~# chmod 600 /etc/rsync.pwd
root@fox:~# rsync -vzrtopg --progress --delete fox@1.1.1.4::fox /home
rsync: failed to connect to 1.1.1.4: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]
root@fox:~# rsync -vzrtopg --progress --delete fox@1.1.1.4:fox /home
The authenticity of host '1.1.1.4 (1.1.1.4)' can't be established.
RSA key fingerprint is 1e:2a:90:ed:69:c1:8f:ca:dd:a7:41:28:f2:ee:16:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '1.1.1.4' (RSA) to the list of known hosts.
fox@1.1.1.4's password:
Permission denied, please try again.
fox@1.1.1.4's password: 密码打的fox
Permission denied, please try again.
fox@1.1.1.4's password:
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8]
root@fox:~#
root@fox:~# rsync fox@1.1.1.4::fox /home
@ERROR: Unknown module 'fox'
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
命令格试试过好多种了都不好用,
2. 配置/etc/rsyncd.conf
root@fox:/home/rsync-acl-2.6.9# vim /etc/rsyncd.conf
uid=nobody
gid=nobody
max connections=4
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock
secrets file=/etc/rsync.pwd
[fox]
path=/home/fox/web
comment=foxfoxfoxfoxfox miao shu
ignore errors
read only=no
list=yes
auth users=fox
#host allow=1.1.1.6/29
root@fox:/home/rsync-acl-2.6.9# echo "fox:fox" > /etc/rsync.pwd
root@fox:/home/rsync-acl-2.6.9# chmod 600 /etc/rsync.pwd
root@fox:/home/rsync-acl-2.6.9# rsync --daemon
安装完成后在客户端作的测试
root@fox:~# echo "fox" > /etc/rsync.pwd
root@fox:~# chmod 600 /etc/rsync.pwd
root@fox:~# rsync -vzrtopg --progress --delete fox@1.1.1.4::fox /home
rsync: failed to connect to 1.1.1.4: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]
root@fox:~# rsync -vzrtopg --progress --delete fox@1.1.1.4:fox /home
The authenticity of host '1.1.1.4 (1.1.1.4)' can't be established.
RSA key fingerprint is 1e:2a:90:ed:69:c1:8f:ca:dd:a7:41:28:f2:ee:16:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '1.1.1.4' (RSA) to the list of known hosts.
fox@1.1.1.4's password:
Permission denied, please try again.
fox@1.1.1.4's password: 密码打的fox
Permission denied, please try again.
fox@1.1.1.4's password:
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8]
root@fox:~#
root@fox:~# rsync fox@1.1.1.4::fox /home
@ERROR: Unknown module 'fox'
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
命令格试试过好多种了都不好用,