There is custom message that comes each time I ssh or scp which I would like to hide. I still want the rest of the stderr to go to stderr output.
For example: a.sh contain one line: ssh example.com "touch /tmp/a.log ; echo ok"
myuser@host $ ./a.sh
No valid ciphers for protocol version 2 given, using defaults.
#######
# this is prod
#
#######
ok
myuser@host $
So I want to hide the first 5 lines, or if putting it into scripting grep -v -E "#|No valid ciphers for protocol". Any other error should still be output to screen/stderr.