Wireguard set up

Hi,
I’m trying to set up fireguard for VPN access to pinhole and next cloud from wan.
I’m trying to follow the instructions at
https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/127
I got to the bit where I could add a config to a mobile client by using an onscreen QR code (yet to be tested) but when I got to the ‘Adding multiple clients:’ stage I get:

jon@Odroid:~$ cd /etc/wireguard
-bash: cd: /etc/wireguard: Permission denied
jon@Odroid:~$ sudo cd /etc/wireguard
[sudo] password for jon: 
sudo: cd: command not found

Jon

Hi,

many thanks for your message. You can’t use sudo together with cd command. Why is explained on this link I quickly found on google

https://community.clearlinux.org/t/why-no-sudo-cd-command-not-found/1811

I would recommend to use root user to setup WireGuard.