Enable SSH or HTTPS depending on your security needs and network setup
FortiManager needs a protocol to communicate with your Fortinet devices. You have two main options: SSH (Secure Shell) and HTTPS (HTTP Secure). SSH is the standard choice for most deployments because it's designed specifically for remote device management and works reliably across firewalls. HTTPS works too, but it's typically a secondary option or fallback when SSH isn't available on your network.
The choice depends on three things: whether your network allows SSH traffic on port 22, whether you need to manage devices across the internet or just locally, and whether your Fortinet devices support both protocols. In most cases, you'll enable SSH. If your network blocks port 22 or you're managing devices through a restrictive firewall, HTTPS on port 443 becomes necessary.
Key Takeaways
- SSH on port 22 is the default and preferred protocol for FortiManager to communicate with FortiGate devices and other Fortinet hardware.
- HTTPS on port 443 works as an alternative when SSH is blocked by firewalls or network policies, though it's less common for device management.
- You can enable both protocols simultaneously, so devices can use whichever one works in their network environment.
- The protocol you choose must be open on both the FortiManager side and the managed device side, or communication will fail.
- Most Fortinet devices support both SSH and HTTPS, but older hardware may only support SSH.
SSH is the standard protocol for device management
SSH is built for remote administration of network devices. When you enable SSH on FortiManager, it listens on port 22 by default. Your FortiGate firewalls and other managed devices connect back to FortiManager using SSH to send logs, receive policy updates, and report their status. This is the protocol Fortinet designed and tested for this purpose.
SSH works well in most network environments because it's lightweight, doesn't require a web browser, and handles the constant back-and-forth communication that device management needs. If your network allows outbound SSH traffic on port 22, this is almost always the right choice. The connection is encrypted, and SSH doesn't care whether devices are on the same local network or separated by multiple firewalls — as long as port 22 is open between them.
Enable SSH in FortiManager by going to System Settings > Network Interface, selecting the management interface, and checking the SSH box. Most deployments leave this enabled all the time.
HTTPS is a fallback when SSH is blocked
HTTPS uses port 443, the same port as web traffic. Some networks block SSH for security reasons or because their firewall policies don't allow it. If your devices can't reach FortiManager on port 22, enabling HTTPS on port 443 gives them an alternative path. Many firewalls allow port 443 outbound by default because it's used for normal web browsing.
HTTPS is less efficient than SSH for device management — it's designed for web browsers, not for the kind of persistent connections that FortiManager needs. But it works, and it's better than having no communication at all. Some organizations use HTTPS as a temporary measure while they work with their network team to open SSH, or they use it for devices in remote locations where SSH isn't available.
Enable HTTPS in FortiManager the same way: System Settings > Network Interface, select the management interface, and check the HTTPS box. You'll need a valid SSL certificate on FortiManager for HTTPS to work properly.
Enable both protocols for maximum flexibility
You don't have to choose one or the other. Enabling both SSH and HTTPS on FortiManager lets each device use whichever protocol works in its network. A device on your local network might use SSH, while a remote branch office that sits behind a restrictive firewall uses HTTPS. FortiManager handles both simultaneously without any conflict.
This is the approach most organizations take, especially if they manage devices across multiple locations or networks. It removes the guesswork — if one protocol fails, the device can fall back to the other. The only reason not to enable both is if your security policy explicitly forbids one of them.
Check what your devices actually support
Before you decide, verify that your managed devices support the protocol you want to use. Most modern FortiGate firewalls support both SSH and HTTPS. Older hardware — particularly devices more than five or six years old — may only support SSH. Check your device's documentation or log into it directly to see which protocols are available.
If you have a mix of old and new devices, enabling both protocols is the only way to manage them all from one FortiManager instance. A device that doesn't support HTTPS simply won't use it, and will fall back to SSH instead.
Verify firewall rules allow the protocol you choose
Enabling a protocol in FortiManager doesn't mean your devices can actually reach it. You need to check three places: the firewall rules on FortiManager itself, the firewall rules on any intermediate firewalls between FortiManager and your devices, and the firewall rules on the managed devices themselves.
For SSH, make sure port 22 is open from your devices to FortiManager. For HTTPS, make sure port 443 is open. If you're managing devices across the internet, you may need to open these ports on your perimeter firewall. If you're managing devices on the same local network, the ports usually need to be open only on FortiManager's own firewall rules. Test connectivity by trying to reach FortiManager from a managed device using SSH or HTTPS before you expect the device to connect automatically.
What happens if neither protocol works
If both SSH and HTTPS are blocked between FortiManager and your devices, they won't be able to communicate at all. Logs won't flow in, policy updates won't push out, and you'll see the devices as offline in FortiManager. This usually means a firewall rule is blocking the traffic, or the port is closed on one end.
Start by checking whether the port is actually open. From a device that should be managed, try to reach FortiManager on port 22 (for SSH) or port 443 (for HTTPS) using a command-line tool. If the connection times out, a firewall is blocking it. If the connection is refused, FortiManager isn't listening on that port — go back and verify you actually enabled the protocol. Once you confirm the port is open and the protocol is enabled, the devices should connect within a few minutes.
Frequently Asked Questions
Can I change protocols after devices are already connected?
Yes. If you enable a second protocol, devices will start using it on their next connection attempt. If you disable a protocol that devices are using, they'll switch to the other one if it's available. There's no downtime or need to restart anything — FortiManager handles the transition automatically.
Does SSH or HTTPS use more bandwidth?
SSH is slightly more efficient, but the difference is negligible for most deployments. Both protocols compress data and use encryption, so bandwidth usage is similar. Choose based on what your network allows, not on bandwidth concerns.
What port does SSH use, and can I change it?
SSH uses port 22 by default. Some FortiManager versions allow you to change this in advanced settings, but most deployments leave it at 22. Changing the port makes it harder for devices to find FortiManager automatically, so it's not recommended unless you have a specific security reason.
Do I need a certificate for SSH?
No. SSH uses its own key exchange and doesn't need an SSL certificate. HTTPS does require a valid certificate, which FortiManager generates automatically, but you can replace it with your own if your organization requires it.
What if my FortiGate device only supports SSH but I want to use HTTPS?
You can't force a device to use a protocol it doesn't support. If your device only supports SSH, enable SSH on FortiManager and make sure port 22 is open. If you need HTTPS for some reason, you'll need to upgrade the device to a version that supports it, or use a different management method.