Re: error in protocol stream

2006-03-23 Thread John Van Essen
On Wed, 22 Mar 2006, David Bear <[EMAIL PROTECTED]> wrote:
> I am trying to use the syntax:
> 
> rsync -av -e "ssh -l ssh-user" [EMAIL PROTECTED]::module /dest
>
> found at http://rsync.samba.org/ftp/rsync/rsync.html

> There is an rsync daemon running on rhost.asu.edu and that has a
> module named home.

That comment implies to me that you missed the fact that the syntax
that you are trying to use does not access a persistent daemon, but
fires up a single-use daemon.  Pay especial attention to the part
about rsync looking for the conf file in the user's home directory.
I'm pretty sure that's your problem, here.  Also make sure any log
paths defined in the conf file are writable by the user.

John

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


error in protocol stream

2006-03-22 Thread David Bear
I am trying to use the syntax:

rsync -av -e "ssh -l ssh-user" [EMAIL PROTECTED]::module /dest

found at http://rsync.samba.org/ftp/rsync/rsync.html

but am getting the following:

rsync -av -e "ssh -l sshuser" rhost.asu.edu::home uc-sirc1/home/
rsync: connection unexpectedly closed (0 bytes received so far)
[receiver]
rsync error: error in rsync protocol data stream (code 12) at
io.c(434)

There is an rsync daemon running on rhost.asu.edu and that has a
module named home. This is a file server box with only two interactive
logins allow, both administrative, so there is no rsync username
required to connect to the module.

I have public key auth setup with rhost as well -- so ssh works
without any password prompting.

I have also tried the syntax:

rsync -av --rsh=ssh rhost.asu.edu::home uc-sirc1/home/
rsync: connection unexpectedly closed (0 bytes received so far)
[receiver]
rsync error: error in rsync protocol data stream (code 12) at
io.c(434)

but you see the result is the same.

I have tried using the tunnell method described at
http://www.samba.org/rsync/firewall.html

using syntax like this:
ssh -fN -l middle_user -L 8873:target:873 middle

except that I don't have a middle system. My script does this:

/usr/bin/ssh -fN -L 8730:localhost:873 [EMAIL PROTECTED]
/usr/bin/rsync -av rsync://localhost:8730/home uc-sirc1/home/
/bin/kill -9 `/usr/bin/pgrep -lf -u natjohn1 ssh | grep "[EMAIL PROTECTED]" | 
cut -f1 -d " "`

This works... except that for some reason the rsync daemon on the
remote host dies --- occasionally... 

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html