The objective of this article is to guide you through installing, using, and the option of uninstalling AnyConnect VPN Client v4.9.x on Ubuntu Desktop.
The Cisco AnyConnect Virtual Private Network (VPN) Mobility Client provides remote users with a secure VPN connection. It provides the benefits of a Cisco Secure Sockets Layer (SSL) VPN client and supports applications and functions unavailable to a browser-based SSL VPN connection. Commonly used by remote workers, AnyConnect VPN lets employees connect to the corporate network infrastructure as if they were physically at the office, even when they are not. This adds to the flexibility, mobility, and productivity of your workers. Cisco AnyConnect is compatible with Windows 7, 8, 8.1, and 10, Mac OS X 10.8 and later, and Linux Intel (x64).
Follow the steps in this article to install the Cisco AnyConnect VPN Mobility Client on a Ubuntu Desktop. In this article, Ubuntu version 20.04 is used.
Cisco Anyconnect VPN client for Linux I looked at the instructions for installing the VPN client located here and it says that I can download the Anycast VPN client for Linux here. The problem is when I go to the link the only downloads that are available are for Mac and Windows.
- Cisco AnyConnect VPN Client for Linux for Linux By Cisco Systems Free Download.com has removed the direct-download link and offers this page for informational purposes only.
- AnyConnect Support for Linux AnyConnect Installation Instructions for Linux. Go to and login using your VCU eID and password, and preferred DUO two factor authentication method. Click the AnyConnect VPN link to download the installer file. Save the AnyConnect installer package to your local computer.
- Cisco AnyConnect - Empower your employees to work from anywhere, on company laptops or personal mobile devices, at any time. AnyConnect simplifies secure endpoint access and provides the security necessary to help keep your organization safe and protected.
If you are using a Windows computer, click here to view an article on how to install AnyConnect on Windows.
If you are using a Mac computer, click here to view an article on how to install AnyConnect on Mac.
AnyConnect Software Version
- AnyConnect - v4.9.x (Download latest)
Table of Contents
Installing AnyConnect Secure Mobility Client v4.9.x
Download the AnyConnect Pre-Deployment Package for Linux from Cisco Software Downloads.
The latest release at the time of publication was 4.9.01095.
Open the Terminal by pressing Ctrl+Alt+T on your keyboard. To navigate to the folder where you have downloaded the AnyConnect Client Package, use the command, ‘cddirectory name’. For more information on the ‘cd’ command, click here.
In this example, the file is placed on the Desktop.
The directory may be different based on the location of the AnyConnect file download. For long filenames or paths, start typing some characters and press the tab key on your keyboard. The filename will auto-populate. If it doesn't even after you press tab twice, it indicates that you need to type more number of unique characters. Alternately, you can use the 'ls' command to list the files in your current directory.
The initial download is a tarball archive (several files packed into one), which must be extracted. The command ‘tar xvffilename’ will extract the contents to the same directory in which the initial file is located.
For more information on the ‘tar’ command, click here.
Once the folder is extracted, use the ‘cddirectory name’ command again to navigate into the folder.
cd [Directory Name]
After navigating into the main folder, ‘cd’ into the vpn sub-folder.
To run the AnyConnect install script, type ‘sudo ./vpn_install.sh’. This will begin the installation process using superuser permissions.
For more details on the 'sudo' command, click here.
Accept the terms in the license agreement to complete the installation by typing ‘y’.
The AnyConnect installation should complete, and the Terminal window can be closed.
Using AnyConnect Secure Mobility Client v4.9.x
To access the Anyconnect app, open the Terminal by pressing Ctrl+Alt+T on your keyboard. Use the command, ‘/opt/cisco/anyconnect/bin/vpnui’.
If you encounter any errors through the Terminal, you can access the app from the applications menu as shown below.
To access the applications menu using the User Interface (UI), click on the start icon (appears as nine dots on the lower left corner). Choose the Anyconnect app.
Alternatively, press Super+A (Super key is the windows icon key) on your keyboard to bring up the search bar. Start typing 'Anyconnect' and the app will appear.
Click on the Anyconnect app.
Enter the IP Address or Hostname of your desired server followed by the port number.
For RV340 family, the default port number is 8443.
Some connections may not be secure using a trusted SSL certificate. By default, AnyConnect Client will block connection attempts to these servers.
Uncheck Block connections to untrusted servers to connect to these servers.
Uninstalling AnyConnect Secure Mobility Client v4.9.x
Download Anyconnect For Linux 64-bit
Using Terminal, navigate to the folder that contains the uninstall shell script using the ‘cd’ command.
In a default installation, these files will be located in /opt/cisco/anyconnect/bin/.
To run the Anyconnect uninstall script, enter ‘sudo ./vpn_uninstall.sh’
This will begin the uninstall process using superuser permissions. For more information on the 'sudo' command, click here.
At the prompt, enter the sudo password and the client software will complete uninstallation.
There you have it! You have now successfully learned the steps to install, use, and uninstall the Cisco AnyConnect Secure Mobility Client v4.9.x on Ubuntu Desktop.
For community discussions on Site-to-Site VPN, go to the Cisco Small Business Support Community page and do a search for Site-to-Site VPN.
The Anyconnect App can be downloaded from the Google Play store or the Apple store.
The instructions below are for Ubuntu Linux distribution. Instructions should be similar for other distributions.
Additional information can be found in the Cisco Release Notes for AnyConnect Client.
Download and Extract the Cisco AnyConnect VPN Client
- Download the appropriate VPN client for your university role:
- Faculty, Staff, Students, or Sponsored Affiliates: Cisco AnyConnect VPN client for Linux.
- Alumni and Retirees: Cisco AnyConnect VPN client for Linux.
- When prompted, authenticate using your uniqname and UMICH password.
- Extract the VPN files:
- In a terminal, enter $ cd~/Downloads.
- For faculty, staff, students, and sponsored affiliates:
Enter $ tar zxvf UMVPN-linux.tar.gz to extract the files.
- For alumni and retirees:
Enter $ tar zxvf UMVPN-Alumni-Retiree-linux.tar.gz to extract the files.
- Change into the AnyConnect VPN Directory and run the installer.
- Enter $ cd anyconnect-linux/vpn.
- Next, enter $ sudo ./vpn_install.sh.
- You are notified that you have accepted the license agreement while the Cisco AnyConnect Secure Mobility Client is installed.
Start the VPN Client
Important You must have a network connection to connect via the VPN.
Download Anyconnect For Linux Free
- Launch the Cisco AnyConnect Secure Mobility client.
- Select UMVPN - All Traffic or UMVPN - Only U-M Traffic from the profile drop-down list.
- Click Connect.
- When prompted, authenticate using your uniqname and UMICH password.
- Complete Duo Two-Factor authentication.
- If the following failure message appears: Failed to start vpnagentd.service: Unit vpnagentd.service failed to load: No such file or directory you may need to add a package:
- The latest package of lib32ncurses
- If you are still having problems you may need an additional package:
Finally, you may need to restart the machine before re-running the VPN installer.