Here is how to disable user accounts (password and SSH login) in #Linux to prevent login via GUI, SSH, or any other method. - nixCraft
Here is how to disable user accounts (password and SSH login) in #Linux to prevent login via GUI, SSH, or any other method. - nixCraft
Their TL;DR is at the bottom:
Reversing all that is underneith the TL;DR:
This should have been the actual post with a link to the source at the end.