1. Prerequisite
- MFA authentication (MFA) is required for accessing the HKUVPN service.
- Only the Microsoft Authenticator App or SMS (Phone Text) are supported as sign-in methods for logging into the HKUVPN service. The phone call method is NOT compatible with HKU VPN. Please refer to the appendix for instructions on changing your default sign-in method to a supported option.
- Remove any existing VPN client before installation:
- If you have an earlier version of Cisco AnyConnect or Cisco Secure Client installed, uninstall it first.
- If a script-based installation was previously used, remove it with the following command:
sudo sh /opt/cisco/secureclient/bin/vpn_uninstall.sh
2. Configuration Procedures (to be done once only)
The examples below use Ubuntu 24.04 on an AMD64 (x86-64) computer. Use the corresponding DEB or RPM package and commands for your own Linux system.
- Identify your Linux architecture and download the archiveOpen a Terminal and run:
uname -a Download the VPN client for Linux, ensuring that you select the correct package type for your system.
DEB package for Debian/Ubuntu-based systems
RPM package for RHEL and RHEL-compatible systems:
- Extract the archive
Open your Downloads folder, right-click the downloaded .tgz file, and choose Extract Here (or the equivalent option). Open the extracted folder and select Open in Terminal.
Alternatively, for the Ubuntu AMD64 example:
cd ~/Downloads tar -xzf cisco-secure-client-deb-amd64-<version>.tgz
cd cisco-secure-client-deb-amd64-<version>
The extracted folder contains exactly two Cisco installation packages: Socket Filter and VPN. Install both; do not install the VPN package by itself.
- Install both required modules
- For Ubuntu (DEB): In the extracted folder, install Socket Filter first, followed by VPN:
sudo apt install ./cisco-secure-client-socketfilter_*.deb
sudo apt install ./cisco-secure-client-vpn_*.deb
- For RHEL (RPM): In the extracted folder, run:
sudo dnf install ./cisco-secure-client-socketfilter-*.rpm
sudo dnf install ./cisco-secure-client-vpn-*.rpm
Enter your Linux account password when prompted, and confirm installation when requested. Do not mix DEB and RPM files.
- After installation, the client will be installed at /opt/cisco/secureclient/
3. Connection Procedures
3.1 By command line
- Start the VPN client by following command-
/opt/cisco/secureclient/bin/vpn connect vpn2fa.hku.hk - Enter your HKU email address (UID@hku.hk or UID@connect.hku.hk) and PIN when you see the username and password command line.
- (i) For users who choose Microsoft Authenticator App as the default sign-in method (The most common method):
- Open the Microsoft Authenticator app on your mobile device.
- Tap on your account to retrieve the One-time password (OTP).

- You will receive an SMS containing the One-time password (OTP) on your registered phone number.
- The OTP is valid for 3 minutes from the time it is sent. Retrieve the OTP from the SMS.

- Enter the 6-digit One Time Password (OTP) in the Answer command line and press Enter.
- When connected, you will see-
- To disconnect from VPN connection, type the following command-
| Username: Password: |
| >> Authentication Message >> Please enter your token code: Answer: <6-digit One Time Password> |
| >> notice: Establishing VPN… >> state: Connected |
| /opt/cisco/secureclient/bin/vpn disconnect |
3.2 By GUI client
- Start the VPN client by the following command-
- Type “vpn2fa.hku.hk” in the Connect to field and click Connect.

- Enter your HKU email address (UID@hku.hk or UID@connect.hku.hk) and PIN in the Username and Password fields respectively and click Connect.

- (i) For users who choose Microsoft Authenticator App as the default sign-in method (The most common method):
- Open the Microsoft Authenticator app on your mobile device.
- Retrieve the One-time password (OTP).

- You will receive an SMS containing the One-time password (OTP) on your registered phone number.
- The OTP is valid for 3 minutes from the time it is sent. Retrieve the OTP from the SMS.

- Enter the 6-digit One Time Password (OTP) in the Answer box and click Continue.

- To disconnect from HKUVPN server, click Disconnect.
| /opt/cisco/secureclient/bin/vpnui |
Appendix: (Optional Step) Updating the Default Sign-in Method in MFA
- Visit your Microsoft 365 account settings at https://myaccount.microsoft.com/
- Sign in using your HKU credentials.
- Go to the “Security info” section.
- Set “App-based authentication – Notification” as your default sign-in method under the section titled “You’re using the most advisable sign-in method where it applies.”
