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 *,!184.108.40.206/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 *,!220.127.116.11/32,!18.104.22.168/32