How to block SSH access
Why do you need to block SSH access ?
SSH is a way to remote your server, but if you don’t need it just simply turn the sshd service off.
But my suggestion is to change the ssh port, or use certificate or key to access the ssh.
See our post on How To Login SSH without password