You can control access to certain services by going here: Security Center>Host Access Control
Here is an example to allow ssh access for Cpanel support:
Here is an example of denying ssh access to all (add IPs you want to allow ABOVE this rule)
Reference: https://www.cpanelkb.net/deny-ssh-access-by-ip-address-on-cpanel/