While I was configuring wireguard, I ran the command
Code:
sudo ufw allow 51820/udp
However I assume that I also had to run
Code:
sudo ufw allow 22/tcp
Now after reboot I locked myself out of ssh access.
My RPi is headless and I don't have HDMI/keyboard, but I can mount the disk to my ubuntu laptop.
I was thinking that I could somehow configure the firewall and open port 22 again by editing a file in the disk, is it possible?