The command ssh -X or ssh -Y to a remote Linux machine produces an error similar to one of these:
ssh -X
ssh -Y
XQuartz is old and needs to be updated.
Update XQuartz to the latest available version.