For example:
user@linuxhost:~$ globalprotect connect --portal myportal.example.com
Retrieving configuration...
Disconnected
myportal.example.com - portal:local:Enter login credentials
username:user1
Password:
Retrieving configuration...
Discovering network...
Connecting...
Connected
Starting from GlobalProtect Linux
version 6.2.1, you have the option to use the command-line interface
(CLI) to connect to the GlobalProtect app when it is configured with
SAML authentication and the default browser. Previously, the only way to
connect to the GlobalProtect app configured with SAML authentication and
the default browser was through the GUI version.
To connect to
the GlobalProtect app configured with SAML authentication using either
the CLI or GUI version, it is mandatory to have the Firefox browser
installed on the Linux endpoint. Use the latest Firefox ESR release
version to ensure a seamless connection with SAML authentication on the
default browser using either the CLI or GUI version
Starting from GlobalProtect Linux
version 6.2.1, you must use the following commands to install the CLI
or GUI versions of the app:
- To install the GlobalProtect UI package- $
./gp_install.sh
- To install the GlobalProtect CLI package- $
./gp_install.sh --cli-only
You don't need to run the
./gp_install.sh with
sudo for GlobalProtect app Linux 6.2.1 and
later versions. As the script executes, users will be prompted to enter
the sudo password.
When you use certificate-based authentication, the first
time you connect without a root CA certificate, the GlobalProtect
app and GlobalProtect portal exchange certificates. The GlobalProtect
app displays a certificate error, which you must acknowledge before
you authenticate. When you next connect, you will not be prompted
with the certificate error message.
user@linuxhost:~$ globalprotect connect --portal myportal.example.com
Retrieving configuration...
Disconnected
There is a problem with the security certificate, so the identity of 10.3.188.61 cannot be verified. Please contact the Help Desk for your organization to have the issue rectified.
Warning: The communication with 10.3.188.61 may have been compromised. We recommend that you do not continue with this connection.
Error details:Do you want to continue(y/n)?y
Retrieving configuration...
Disconnected
10.3.188.61 - portal:local:Enter login credentials
username:user1
Password:
Retrieving configuration...
Discovering network...
Connecting...
Connected
You can also specify a username
in the command using the --username <username> option.
The GlobalProtect app prompts you to authenticate and, if you specified
the username option, confirm your username.