Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

rsync error: protocol incompatibility

linux, QuickFix, Technical | 1 comment

Trouble with Rsync on Linux Mint 5 Rc1:

$ rsync -av ttf-kannada-fonts_0.5.4_all.deb [email protected]:/home/user
The authenticity of host ‘192.168.0.2 (192.168.0.2)’ can’t be established.
RSA key fingerprint is 93:97:3b:94:fb:d0:8d:a2:f1:bc:e6:34:3e:5f:e2:a9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.0.2′ (RSA) to the list of known hosts.
[email protected]’s password:
protocol version mismatch — is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(61) [sender=2.6.9]

I found that the issue was caused due to .bashrc. As per the documentation read, startup scripts sending the unwanted garbage to the steam which is being used by rsync for its transport. This in turn result in the above reported issue. I just moved the .bashrc on remote host (192.168.0.2) and things started working fine again.

$ rsync -av ttf-kannada-fonts_0.5.4_all.deb [email protected]:/home/user
[email protected]’s password:
building file list … done
ttf-kannada-fonts_0.5.4_all.deb
sent 512814 bytes  received 42 bytes  146530.29 bytes/sec
total size is 512634  speedup is 1.00

Related Articles

Related