Hi, I have followed this link to configure rsync with ssh.I did all the suggested things on remote machine.When i try to run rsync from source machine i am getting following error Error protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(64) I really need to fix this and i seaced on the net and this is shell problem on remote machine and i don't know which file and where to look i am running as root with bash shell. Thanks for your help -------------- next part -------------- HTML attachment scrubbed and removed
On Thu, 5 Jan 2006, gg gg234 <ggs234@googlemail.com> wrote:> > protocol version mismatch -- is your shell clean? > (see the rsync man page for an explanation)So... Did you look at the man page? Searching for "clean" brings you to the DIAGNOSTICS section, which explains what the problem is and how to test for it and fix it. John
On Thu, 5 Jan 2006, gg gg234 <ggs234@googlemail.com> wrote:> Hi John, > > Thanks for your reply > > I have check that and i try to run ssh 172.29.5.130 /bin/true > out.dat > and i got the out.dat file with only text inside is RejectedIf rsync is seeing that "Rejected" that explains the error. This is a problem with ssh. You need to get the /bin/true test to work with no resulting output so that rsync doesn't read garbage when it connects with the remote host.> I have a look at root .bashrc as follows[ snip ] Does your sshd on 172.29.5.130 allow connections by user root? See PermitRootLogin in the sshd man page. Can you do the /bin/true test successfully as a non-root user? John