Update: WARNING: --rsh or -e option ignored when connecting torsyncdaemon]

Sean O'Neill sean at seanoneill.info
Wed Apr 17 07:23:01 EST 2002


At 06:43 PM 4/17/2002 +0800, Jack Khoo wrote:
>i try to start the rsync daemon with " rsync -p 22 --daemon" on the remote 
>server(host)  and then
>
>ps -ef |grep rsync
>     root 44262     1   0 01:18:57      -  0:00 /usr/local/bin/rsync -p 
> --daemon 22
>
>"rsync -auvz --password-file=/export/home/tester01/rsync.pwd
>/export/home/tester01/. axlink at host::/home/axlink/rs"
>
>i got the error below:
>rsync: connection unexpectedly closed (0 bytes read so far)
>rsync error: error in rsync protocol data stream (code 12) at io.c(150)
>
>but if i use back "rsync -auve ssh 
>-z  --password-file=/export/home/tester01/rsync.pwd
>/export/home/tester01/. axlink at host:/home/axlink/rs"
>
>it prompt for password, how do i escape from key in the passwd where auto 
>login is possible by refer to rsync.pwd

Setup ssh with pubkey authentication on both boxes for the accounts you are 
using.  Works great with rsync.  Now you don't have a password HARDCODED on 
your system for someone to potentially look at.


--
........................................................
......... ..- -. .. -..- .-. ..- .-.. . ... ............
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...

Sean O'Neill





More information about the rsync mailing list