Hi I running a rsync server using version 2.6.3pre1 in a Solaris 10 server. When I try to use ssh to encrypt my data, the rsync client fails with this message: rsync -avz -e ssh winbox.exe zone43@zone43.gridzones.com::backups Password: rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(434) My config file are: rsyncd.conf secrets file = /opt/sfw/etc/rsyncd.secrets log file=/var/log/rsyncd [backups] path = /home/zone43/backups read only = false uid = zone43 gid = zone43 transfer logging = yes The user and group zone43 are owner in /home/zone43/backups Please, any help ? Thanks in advance. roberto -- Ing. Roberto Pereyra ContenidosOnline http://www.contenidosonline.com.ar
Roberto Pereyra wrote:> Hi > > I running a rsync server using version 2.6.3pre1 in a Solaris 10 > server. > > When I try to use ssh to encrypt my data, the rsync client fails with > this message: > > > rsync -avz -e ssh winbox.exe zone43@zone43.gridzones.com::backups > Password: > rsync: connection unexpectedly closed (0 bytes received so far) > [sender] rsync error: error in rsync protocol data stream (code 12) > at io.c(434) > > > My config file are: > > rsyncd.conf > > secrets file = /opt/sfw/etc/rsyncd.secrets > > log file=/var/log/rsyncd > > > [backups] > > path = /home/zone43/backups > read only = false > uid = zone43 > gid = zone43 > transfer logging = yes > > > The user and group zone43 are owner in /home/zone43/backups > > Please, any help ? Thanks in advance. > > robertoCan you ssh into the box using the zone43 username/password?? Thanks! Mark Schoonover IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816 "Eternity is a very long time, especially towards the end." -- Stephen Hawking
Hi Mark Yes I can ssh login and if write a wrong user/password the system promt for a new one, without error. Seems like a ssh issue because if I use the standard rsync port (without shh) works well. Thanks roberto 2007/3/22, Mark Schoonover <schoon@amgt.com>:> Roberto Pereyra wrote: > > Hi > > > > I running a rsync server using version 2.6.3pre1 in a Solaris 10 > > server. > > > > When I try to use ssh to encrypt my data, the rsync client fails with > > this message: > > > > > > rsync -avz -e ssh winbox.exe zone43@zone43.gridzones.com::backups > > Password: > > rsync: connection unexpectedly closed (0 bytes received so far) > > [sender] rsync error: error in rsync protocol data stream (code 12) > > at io.c(434) > > > > > > My config file are: > > > > rsyncd.conf > > > > secrets file = /opt/sfw/etc/rsyncd.secrets > > > > log file=/var/log/rsyncd > > > > > > [backups] > > > > path = /home/zone43/backups > > read only = false > > uid = zone43 > > gid = zone43 > > transfer logging = yes > > > > > > The user and group zone43 are owner in /home/zone43/backups > > > > Please, any help ? Thanks in advance. > > > > roberto > > Can you ssh into the box using the zone43 username/password?? > > Thanks! > > Mark Schoonover > IS Manager > American Geotechnical - California, Nevada and Arizona > V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816 > "Eternity is a very long time, especially towards the end." -- Stephen > Hawking > > > >-- Ing. Roberto Pereyra ContenidosOnline http://www.contenidosonline.com.ar
Roberto Pereyra wrote:> Hi > > I running a rsync server using version 2.6.3pre1 in a Solaris 10 server. > > When I try to use ssh to encrypt my data, the rsync client fails with > this message:According to documentation what you try simply isn't possible "directly". If you want transport encryption you have to create an ssh-tunnel and then do the connect to the daemon through that tunnel. You can put something like this in .ssh/config - snip - Host rsynctunnel User zone43 Hostname zone43.gridzones.com LocalForward 1873 127.0.0.1:873 ServerAliveInterval 300 - snip - This creates a tunnel from localhost port 1873 to remote port 873 You can use whatever you like for the local port. If the daemon on the remote side doesn't bind to the local IP, you can use it's correct IP instead. With that in .ssh/config, this builds the tunnel: ssh rsynctunnel After that this should work (i haven't tested it!) rsync -avz winbox.exe rsync://zone43@localhost:1873::backups After the rsync completes you can tear down the ssh-connection. Bis denn -- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous.