Chapter 10 Install and System Administration for FortiOS 5.0 : Using the CLI : Connecting to the CLI
  
Connecting to the CLI
You can access the CLI in two ways:
Locally — Connect your computer directly to the FortiGate unit’s console port. Local access is required in some cases:
If you are installing your FortiGate unit for the first time and it is not yet configured to connect to your network, unless you reconfigure your computer’s network settings for a peer connection, you may only be able to connect to the CLI using a local serial console connection. For more information, see “Connecting to the CLI”.
Restoring the firmware utilizes a boot interrupt. Network access to the CLI is not available until after the boot process has completed, making local CLI access the only viable option.
Through the network — Connect your computer through any network attached to one of the FortiGate unit’s network ports. The network interface must have enabled Telnet or SSH administrative access if you will connect using an SSH/Telnet client, or HTTP/HTTPS administrative access if you will connect using the CLI Console widget in the web-based manager.
See Also
Connecting to the CLI using a local console
Connecting to the CLI using SSH
Connecting to the CLI using Telnet