Cisco AnyConnect Client is an SSL VPN client which provides VPN functionalities with other features that enable an enterprise to secure its endpoints. In an ideal use case, you’ll use Cisco AnyConnect Secure Mobility Client to connect to a Cisco SSL VPN server. There is an open source creation called OpenConnect. We have a guide on how to connect to VPN Server with OpenConnect SSL VPN Client on Linux.

I encountered so many issues with OpenConnect and decided to give AnyConnect a try. Follow the steps provided in the next sections to install and configure AnyConnect VPN client on a Linux system – Ubuntu/Debian/Fedora/CentOS/RHEL e.t.c.

Step 1: Download AnyConnect Client

AnyConnect client for Linux, Windows and macOS is available on Downloads page . Login with your Cisco account credentials and download the latest anyconnect-linux64* package.

Once the archive file is downloaded, proceed to extract it.

$ tar xvf anyconnect-linux64-4.7.01076-predeploy-k9.tar.gz

Step 2: Install Cisco AnyConnect on Ubuntu / Debian / Fedora

Now that file has been downloaded and extracted, cd to created folder.

cd anyconnect-linux64-*/ 

You should see below folders.

$ ls
dart  nvm  posture  vpn

Navigate to vpn directory and execute script with sudo.

sudo ./

Accept License when prompted.

Description of Other Rights and Obligations 
Please refer to the Cisco Systems, Inc. End User License Agreement.
Do you accept the terms in the license agreement? [y/n] y

The installer script will create a systemd service unit file and enable it to start at boot.

You have accepted the license agreement.
Please wait while Cisco AnyConnect Secure Mobility Client is being installed...
install systemd
Installing ./vpnagentd.service
Created symlink /etc/systemd/system/ → /usr/lib/systemd/system/vpnagentd.service.
Starting Cisco AnyConnect Secure Mobility Client Agent...

Step 3:Launch Cisco AnyConnect

For CLI connection, check:

Connect To VPN Server with Cisco AnyConnect from Linux Terminal

For Desktop, launch Cisco AnyConnect Secure Mobility Client from your Desktop.

launch anyconnect linux

Input VPN server IP address and hit connect key. Then click on change settings to trust the server.

anyconnect verify server

Uncheck “Block Connections to untrusted servers“.

anyconnect unblock untrusted connections

After the change, your settings should look similar to below.

anyconnect unblock untrusted connections 02

Then Click “Connect Anyway” to accept untrusted certificate warning.

anyconnect unblock untrusted connections 03

When prompted to enter login credentials, input your username and password to be connected.

anyconnect enter username password

Your VPN connection should be active. Confirm connection by checking IP address details and routes.

$ ip addr
$ ip route

Enjoy using AnyConnect to access your private networks securely over public internet.

Also check:

How to Setup IPSec VPN server with L2TP and Cisco IPsec on Linux

Algo VPN – Setup a personal IPSEC VPN in the Cloud

Connecting to Algo VPN Server from Linux and Android devices

How to use nmcli to connect to OpenVPN Server on Linux

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here