Disabling SSH is an interesting tip. I guess the OP doesn't do any automation via SSH.
It's just a way to stop yourself from cheating and SSHing in just to fix that one thing, instead of automating it.
The goal of the tip is really to stop users SSHing in just to fix that one little thing, so you could still allow your automation frameworks SSH access and just disable it for users.