rsync 2.5.6 with ssh to a remote server

Brian b_rose at shaw.ca
Tue Dec 2 17:08:22 EST 2003


Hi,
I would like to use the new interface style:

rsync --rsh="ssh -l username -i key" <src>
username at host::module, 

however I get "reset by peer" errors. Can someone give some 
suggestions, please?  Do I need to provide a symlink to the
/etc/rysncd.conf file from within the user's dir? 
Note, I have the groups set to same as user and the
group exists.  Where does the command string go for the
single use ssh-key in relation to the key?

On one line, this is what I have in .ssh/authorized_keys
for this key, but the command string doesn't work.  (It
still requests my password.)
"ssh-rsa command=rsync--server--daemon.
k67PL6J4tWpUwoDzADXv15yhbXb0XpIFyitTDO/ASBwJMhsLGXpxrk5PVp+
og+aU+LFWA+OQ0GwYHKhuPkoy//dBiQq9uuMUD0djbLGevgXArWEfaglmDa
B5k2CPLD6kMpbrwBK2qckaS5uCHJS6M/2y04vR8QcI/skM=
brian at lucy.local."

Relevent part of my
/etc/rsyncd.conf:

# GLOBAL OPTIONS
 
motd file=/etc/motd
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
syslog facility=daemon
#socket options=
 
# MODULE OPTIONS
 
[brian] 
        path = /home/brian
        use chroot = true # Do I need this for ssh style?
        read only = false
        uid = 1000	# Or these 2 lines?
        gid = 1000
        auth users = brian  # And these 3 lines?
        secrets file = /etc/rsyncd.secrets
        strict modes = true
 


-- works --
C:\kdi>rsync -auvv   /cygdrive/c/kdi/brian
brian at 192.168.1.64::brian/brian 

opening tcp connection to
192.168.1.64 port 873 Linux aspen 2.4.18-evms #1 Sat Nov 8
00:32:46 GMT-7 2003 i686 unknown Password:
building file list ...
expand file_list to 4000 bytes, did move
done
total: matches=0  tag_hits=0  false_alarms=0 data=0
wrote 2108 bytes  read 152 bytes  301.33 bytes/sec
total size is 5517824  speedup is 2441.52
 
 
 
-- If I try with ssh, prints the following error:
rsync: unable to open configuration file "rsyncd.conf": No
such file or directory

-- so I create a soft link: 

ln -s /etc/rsyncd.conf /home/brian/rsyncd.conf 
 
-- and it gets past that error.

C:\kdi>rsync -auvv --rsh="ssh -i .ssh/id_rsa -l brian" 
/cygdrive/c/kdi/brian brian at 192.168.1.64::brian/brian
opening connection using ssh -i .ssh/id_rsa -l brian
192.168.1.64 rsync --server --daemon .
 Linux aspen 2.4.18-evms #1 Sat Nov 8 00:32:46 GMT-7 2003
i686 unknown  rsync: read error: Connection reset by
peer rsync error: error in rsync protocol data stream (code
12) at io.c(177) 
 C:\kdi>

-- What is the problem here?  Both rsync ends are 2.5.6. 
Client ssh is OpenSSH_3.7.1p2, SSH protocols 1.5/2.0,
OpenSSL 0.9.7c 30 Sep 2003.  Also, it appears when using ssh
and ::, win client passes "rsync --server  --daemon ." to
server.  Is this true?  Will it use /etc/rsyncd.conf?




-- 
ContagiousDesign!
web . design . software . photo

Brian Rose .  programmer
Stacey Rose . designer 
(604)-588-8827 . contagiousdesignATshawDOTca

--------------------------------------------




More information about the rsync mailing list