Installing OpenVPN in Ubuntu 22.04
Step 1: Update your system
First, run the apt command to apply security updates:
sudo apt update
sudo apt upgrade
Step 2 – Download and run openvpn-install.sh script
# With no password authentication
wget https://git.io/vpn -O openvpn-ubuntu-install.sh
# With Password authentication
wget https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh -O openvpn-ubuntu-install.sh
chmod -v +x openvpn-ubuntu-install.sh
sudo ./openvpn-ubuntu-install.sh
Choose the options accordingly.

Step 3 – Connect an OpenVPN server using iOS/Android/Linux/Windows desktop client
use scp in order to copy the profile from the server to your local computer/mobile.
TIP
scp tutorial for more info.
scp root@YOUR_IP_V4_ADDRESS:/root/YOUR_PROFILE.ovpn
Then you can use this profile to connect via openvpn client.
Refer to https://www.cyberciti.biz/faq/ubuntu-20-04-lts-set-up-openvpn-server-in-5-minutes/ for more information.