wtorek, 13 stycznia 2015

Rsync - ERROR: rsync error: protocol incompatibility (code 2) at compat.c(171) [sender=3.0.6]

$rsync -av file.zip user@host:file.zip
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) [sender=3.0.6]
This message can be somewhat misleading at first glance, but the key to solve this issue is answering what actually means "clean shell" ;). Most probably some MOTD is displayed in one of the config files (eg. .bashrc) when user starts new session. To check if it is a case try the following command:

ssh designer@10.1.1.162 true | wc -c
If this command returns 0 that means there is no output produced.

Brak komentarzy:

Prześlij komentarz