occtl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
occtl: command not found
or when using sudo you get the following error message
sudo: occtl: command not found
Solutions to occtl: command not found
How To Fix occtl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu occtl is provided by ocserv package.
ocserv is:
OpenConnect server (ocserv) is an SSL VPN server. Its purpose is to be a secure, small, fast and configurable VPN server. It implements the OpenConnect SSL VPN protocol, and has also (currently experimental) compatibility with clients using the AnyConnect SSL VPN protocol. The OpenConnect VPN protocol uses the standard IETF security protocols such as TLS 1.2, and Datagram TLS to provide the secure VPN service. The server is implemented primarily for the GNU/Linux platform but its code is designed to be portable to other UNIX variants as well.
Ocserv’s main feature is isolation of the VPN users from the main VPN server process. Each authenticated user is assigned an unprivileged worker process, and a networking (tun) device. That not only eases the control of the resources of each user or group of users, but also prevents privilege escalation due to any bug on the VPN handling (worker) server. Each VPN user can be authenticated using password, PAM, public key (in a smart card or not) or any combination of methods.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ocserv
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ocserv.
sudo apt -y install ocserv
Or if you have aptitude installed you can use the following command.
sudo aptitude install ocserv
Summary
In this tutorial we learn how to fix occtl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.