VPN - Setup and Usage on Linux

Last Updated: 08/23/2017
One Column
Two Column
This tutorial is operating system independent.


For VPN setup and usage instructions using the command line interface in Linux, reference the following information.

Get the Software

Download the needed Linux VPN client for your purposes:

Cisco AnyConnect client for Linux (32-bit)  |  Cisco AnyConnect client for Linux (64-bit)

Install AnyConnect

Ubuntu Distributions

Extract the files from download. In the extract location use a command similar to:

sudo ~/Downloads/anyconnect-3.*/vpn/vpn_install.sh

This example is if you extracted the files in your download folder. Replace Download with your extract location.

Mint Distributions 

In Terminal, run the following to install dependencies:

sudo apt-get install network-manager-openconnect-gnome

Extract the zip and change the terminal directory to the included "vpn" folder by running:

cd [extracted folder location here]/vpn

*Note: the installer will fail if the terminal is pointed to any other directory

Run the following commands to finish install of the program: 

sudo chmod +x vpn_install.sh

sudo vpn_install.sh

Using AnyConnect


/opt/cisco/anyconnect/bin/vpn connect vpn.colorado.edu


/opt/cisco/anyconnect/bin/vpn disconnect


/opt/cisco/anyconnect/bin/vpn status

AnyConnect Uninstall

sudo /opt/cisco/anyconnect/bin/vpn_uninstall.sh

Then delete the whole /opt/cisco/anyconnect folder

cd /

rm -rf /opt/cisco/anyconnect/

*proceed to AnyConnect client installation directions above