For a blacklist, in your `sshd_config` add the `DenyUsers` entry followed by a list of users separated by a space. You can also use `DenyGroups` in a similar fashion.
For example: `DenyUsers jimmy bill joe susan`
or
`DenyGroups teachers`
A whitelist is created by using the `AllowUsers` and/or `AllowGroups` entries in the `sshd_config` file. If either of these entries is used, only those users or groups listed will be permitted to login.