Home > front end >  Can I suppress the output when connecting to EC2 via ssh?
Can I suppress the output when connecting to EC2 via ssh?

Time:01-16

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!

CodePudding user response:

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.

  • Related