You are getting these messages because the server has ClientAliveInterval which is not set to 0 (the default).
Sets a timeout interval in seconds after which if no data has been received from the client, sshd(8) will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client.
Solutions
The simplest solution is to remove the ClientAliveInterval on the server, it defaults to 0 and no messages are sent.
Alternatively, set the value to 0.
Where?
You typically do this by editing the servers sshd_config which is likely in /etc/ssh/sshd_config. The changes take affect the next time the daemon is started.
Notes
For hosted service, it may be a bad idea to set ClientAliveInterval to 0. Mainly because it can keep the host running unnecessarily and waste money.
Client: set ServerAliveInterval to a lower value than the servers ClientAliveInterval
If you don't have access to the server, or you want to configure clients differently. You may set the ServerAliveInterval to a value that is lower than the ClientAliveInterval. Then the ssh client will periodically send messages which reset the server timeout.
Where?
You typically do this by the editing the clients ssh_config which is likely in ~/.ssh/config.
Notes
Setting the ServerAliveInterval lower than the ClientAliveInterval is, for most intents and purposes, the same as not having one. You won't get messages in your terminal.
Nevertheless, it allows for interesting configuration. You can open different ssh connections, some which timeout and some which don't when used in conjunction with ClientAliveCountMax where the server closes the connection it has sent n messages.
This doesn't prevent server messages from ever being sent. For example, if the package was dropped or severe delay caused the message to arrive late, the server will still send a message.
Filter, ignore the messages
Presumably the messages are sent to stderr. Redirect and/or filter stderr is probably another viable route.