A SonicWall firewall can be managed directly through a Secure Shell (SSH) connection. You need to enable SSH management on each interface. Use these steps to minimize remote access risks:
Navigate to Network > System > Interfaces and select the interface to configure for SSH.
To set the service port if it should be different from the default:
Restrict inbound SSH access to particular hosts or networks by setting a firewall access rule.
Create a rule that limits SSH access. This text in the following image is just an example; your rule will likely be different.