Why rsync command throws 'rsync error: protocol incompatibility (code 2) at compat.c' message ?

Solution Verified - Updated -

Issue

  • Why rsync is giving protocol error message during file copying ?
# rsync -avz -e ssh hostname:/export

protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.6]

Environment

  • Red Hat Enterprise Linux 5.6
  • rsync

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content