In order to connect with VPN, you first have to select the "Wireguard" network of the desired desktop.
Press the icon
And the icon
In the "Hardware" section, in "Networks" select the network "Wireguard VPN"
Go back to the Home screen and press the drop-down menu
And press the button
A file will be downloaded which should be given a short name.
Open a terminal on your computer and run this command:
sudo cp ~/Downloads/user.conf /etc/wireguard/ # Downloads = the folder where the file was downloaded; user.conf = the name given to the vpn file sudo wg-quick up user # user = name of the file user:~$ ping (IP_imatge**) user:~$ ssh isard@IP_imatge** isard@ubuntu-server:~$