I want to copy a file to EC2 via rsync using instance connect (ssh). Unfortunately, I run into the following error message:
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at /AppleInternal/Library/BuildRoots/some-hash/Library/Caches/com.apple.xbs/Sources/rsync/rsync/compat.c(61) [sender=2.6.9]
After some research , I assume it's coming from this output when connecting to the instance via ssh:
Last login: Sun Jan 15 13:19:10 2023 from xxx.pool.xxx.de
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
Does anyone know how to remove this print statement? I already checked .bashrc
and /etc/bashrc
, but couldn't find the echo statement anywhere. Thanks!
That should not be the problem. It is more likely that there is a mismatch between the rsync versions used in the source and target.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.