Created on
03-19-2018
09:09 AM
Edited on
02-23-2025
08:06 AM
By
MZBZ
Description
This article describes how to connect the FortiClient SSL VPN from the command line.
Scope
FortiClient.
Solution
The full FortiClient installation cannot be used for command line VPN tunnel access.
To use FortiClient in the command link, FortiClientTools is required. To download and use FortiClientTools:
Notes:
To connect from the command prompt only without getting the pop-up, all information must be specified as follows:
FortiSSLVPNclient.exe connect -s connection_name -h FortiGate_IP:port -u username:password -i -m -q
For example:
FortiSSLVPNclient.exe connect -s MyCompanyName -h 192.168.10.1 -u guest:vpn123 -i -m -q
Command Line Usage:
Usage: FortiSSLVPNclient.exe <subcommand> [options] [args]
e.g. FortiSSLVPNclient.exe connect -s MyCompanyName -i -m -q (No Certificate)
e.g. FortiSSLVPNclient.exe connect -s MyCompanyName -c FCT.net:earth-EARTH-CA -i -m -q (with Certificate)
Commands
Syntax |
Switch |
-s |
<connection settings name> |
-h | <sslvpn server>[:<port>] |
-u |
<sslvpn username>[:<password>] |
-c |
<certificate subject>[:<issuer>] |
-i |
Ignore server certificate warning |
-q |
Quiet mode (no error message box) |
-m |
Minimize window on connection |
Sub-Commands
connect |
Start a connection |
disconnect |
Disconnect from the session |
Usage
To connect |
FortiSSLVPNclient.exe connect [options] [args] |
To disconnect |
FortiSSLVPNclient.exe disconnect [options] [args] |
Link to download FortiClient:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.