Wireguard set up

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
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



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


I would recommend to use root user to setup WireGuard.