How to resolve "rsync error: protocol incompatibility (code 2)"?

Hello Experts,

I'm trying to copy a few files from one server to another (both are remote) from my Windows 7 Prof machine.

'A' to box 'B'. Since I don't have SSH access on box 'A', I'm trying to pull files from box 'A'

I tried this rsync command:
rsync -avrPtz -e 'ssh -p 2202' username@xx.2xx.1xx.xx2:/home/username/somefolder/* /home/username/files/COPIED

Open in new window

but I get this error message instead:
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(173) [Receiver=3.0.7]

Open in new window

Any ideas would be appreciated. TIA..
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

To start: Connect to both machines, and at a command prompt enter:

rsync --version

And assuming it finds an install:

which rsync
which ssh

Note the paths on both the LOCAL and REMOTE compters and plug them into the --rsh and --rsync-path elements of the following rsync call:

rsync -avzP --rsh="/LOCAL_PATH/bin/ssh -l username -p 2202" --rsync-path=/REMOTE_PATH/bin/rsync  xx.2xx.1xx.xx2:/home/username/somefolder/ /home/username/files/COPIED

Open in new window

Then report back.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LinuxGuruLinux Server AdministratorCommented:
This is normally due .bashrc file. You can just move the .bashrc on remote host to some other name and rsync should work fine again.

gam8Author Commented:
Thanks so much for the responses.. My apologies for the delay.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.