Fortinet white logo
Fortinet white logo

CLI Reference

7.2.2

Connecting to the CLI

Connecting to the CLI

To connect to the running Container FortiOS container:
  1. In the host shell, enter the appropriate command for your platform:

    • LXC: lxc-console -n <container_name>

    • Docker: docker exec -it <container_name> /bin/cli

    • Kubernetes: kubectl exec --stdin --tty <container_name> /bin/cli

  2. At the prompt, enter the username and password.

    The default user is admin and the password is blank. See config system admin.

Connecting to the CLI

Connecting to the CLI

To connect to the running Container FortiOS container:
  1. In the host shell, enter the appropriate command for your platform:

    • LXC: lxc-console -n <container_name>

    • Docker: docker exec -it <container_name> /bin/cli

    • Kubernetes: kubectl exec --stdin --tty <container_name> /bin/cli

  2. At the prompt, enter the username and password.

    The default user is admin and the password is blank. See config system admin.