Whenever I tried to install Cisco AnyConnect VPN Client on Ubuntu, I will have problems installing the software or fail to start the program for the first time. In this blog post, I documented the simple protocol of installing Cisco AnyConnect VPN Client on Ubuntu.
- Ubuntu 18.04/20.04 LTS
- Cisco AnyConnect VPN Client 4.5.0
$ sudo apt-get install network-manager-openconnect libpangox-1.0-0 libcanberra-gtk-module
Install VPN Client
Download VPN client from your company or a certain trusted website. For NVIDIA employees, we use https://www.nvidia.com/content/includes/anyconnect.html. Unzip the file and goes into the directory of the folder.
$ cd ./vpn $ sudo ./vpn_install.sh
If there are missing components that are causing the failure of AnyConnect to start, we will get error or warning messages from the terminal. Then we could use this information for further troubleshooting.
In some scenarios, Cisco AnyConnect drops connections frequently. We would use OpenConnect instead.
Installing OpenConnect is extremely simple.
$ sudo apt-get update $ sudo apt-get install openconnect
To start the VPN connection using OpenConnect, we would run the following command.
$ sudo openconnect --protocol=anyconnect --authgroup=employee --user=<username> --background <server>
Enter the password per request.