In sshd_config, you can use the
directive to apply different configuration parameters to ssh connections depending on their characteristics.
In particular, you can match on ip address, both positively and negatively.
You can specify multiple conditions in the match statement. All conditions must be matched before the match configuration is applied.
To negatively match an ip address, that is, to apply configuration if the connection is not from a particular ip address, use the following syntax
Match Address *,!126.96.36.199/32
To negatively match more than one ip address, that is, to apply configuration if the connection is not from one of more ip addresses, use the following syntax
Match Address *,!188.8.131.52/32,!184.108.40.206/32