Wireguard set up Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Deleted User 7758

Wireguard set up

Post by Deleted User 7758 »

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:

Code: Select all

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
User avatar
Posts: 4136
Joined: Sat Nov 16, 2019 12:49 am

Re: Wireguard set up

Post by Joulinar »


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- ... found/1811

I would recommend to use root user to setup WireGuard.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply