Secure Shell (SSH) is a protocol for secure remote login and other secure network services over networks.
SSH use the TCP to communication. Default login port 22.
Simply block TCP port 22 on the firewall.