[wplug] weird rsync error
Shawn Zier
shawnzier at gmail.com
Wed Mar 19 17:44:40 EST 2008
Alexandros Papadopoulos wrote:
> On Wed, Mar 19, 2008 at 1:12 PM, Zach <netrek at gmail.com> wrote:
>
>> On Wed, Mar 19, 2008 at 5:14 AM, Alexandros Papadopoulos
>> <apapadop at alumni.cmu.edu> wrote:
>> >
>> > I don't know why this is so, but I've always found that temporarily
>> > storing the password in an environment variable works much better.
>> >
>> > $ export RSYNC_PASSWORD=blah
>> > $ rsync ....
>>
>> Hi,
>>
>> I tried that but rsync still prompts me for the password. And then the
>> same error occurs, but this time it took nearly 3 minutes:
>>
>> ubuntu at ubuntu:~/Desktop$ export RSYNC_PASSWORD=foo
>>
>>
>> ubuntu at ubuntu:~/Desktop$ time rsync -avP --progress doxygen.diff
>> chaos at unix.club.cc.cmu.edu:/afs/club.cc.cmu.edu/usr/chaos/tmp
>> chaos at unix.club.cc.cmu.edu's 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)
>>
>> real 2m53.439s
>> user 0m0.051s
>> sys 0m0.209s
>>
>> Here is the version I have, maybe RSYNC_PASSWORD isn't known to it?
>>
>
> Sorry I was off-base here. RSYNC_PASSWORD is for rsync authentication,
> you're trying to do (hopefully) SSH-based authentication.
>
> Try this:
> $ rsync -avP -e "ssh -v" doxygen.diff
> chaos at unix.club.cc.cmu.edu:/afs/club.cc.cmu.edu/usr/chaos/tmp
>
> -A
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
Alexandros,
Could you just do password-less ssh with rsa or dsa keys?
http://www.debian-administration.org/articles/152
Shawn
More information about the wplug
mailing list