Article 6DKGB Locked myself out from ssh access on a RPi4

Locked myself out from ssh access on a RPi4

by
bomberb17
from LinuxQuestions.org on (#6DKGB)
While I was configuring wireguard, I ran the command

Code:sudo ufw allow 51820/udpHowever I assume that I also had to run

Code:sudo ufw allow 22/tcpNow 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?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments