VPN Server on Ubuntu® 22.04 LTS provides a robust and reliable VPN solution for secure networking. Its simplicity and stability make it an excellent choice for enterprises and small businesses alike.
Built for efficiency, optimized for your needs — get started instantly.
Configuration and Connection to the VPN Server on Ubuntu® 22.04 LTS
Connecting to the Server and Creating a User
After purchasing and starting the VM you should know its IP address. You can find it in your Amazon personal account.
To work, you should have TCP port 22 and UDP port 1194 open in the Amazon firewall network properties
Before connecting to the server, you must generate a “Private Key” in advance. This can be done by following the instructions in the guide, “Guidance on usage: Key Pair Setup for Seamless VM Access” (be sure to select the “.ppk” option in step 3).
- Connecting to the VM using the PuTTY application. You can download it at the following link – Download
- Go to section SSH on the left panel, and then to Auth
- In the “Auth” section, click “Browse” and specify the path to the .ppk file you received earlier.
- Return to the “Session” home page, enter the IP address of the VM, and click “Open.”
- In the opened console you will need to enter the login ubuntu.
- Next, you should enter the following commands:
> sudo vpnusers
- To create a new user, type “1” and press Enter
- Write a username and press Enter
- The last line will tell you where the config file is available (testuser.ovpn in this case). You need to copy the contents of this file. To do this, display the contents of the file on the screen with the following command:
> cat /etc/openvpn/clientconfigs/”exampleuser”.ovpn
Don’t forget to replace “exampleuser” with the username that was created in step 4
- Copy the entire contents of the file by selecting it and pressing Ctrl + C
- Open Notepad or any other text editor and paste the contents of the file into a blank document
- Save the file with the extension .ovpn
Creating a VPN Connection Using OpenVPN Client
- Run OpenVPN Connect. If you don’t have OpenVPN installed, you can download it here.
- In the OpenVPN Connect window, specify the path to the file you unpacked from the archive and click “OK”.
- Click Connect
- If the connection is successful, a confirmation window will be displayed.
- You can verify your IP address has changed by visiting What Is My IP both before and after connecting to OpenVPN.
Now you can use the secure and fast OpenVPN solution

