3
1
Last night I did a most annoying mistake. On a Ubuntu 14.04 server I enables ufw and forgot to allow ssh. Then I logged off.
Naturally I am now locked out with ssh.
Fortunately my hoster provides a repair feature that enables me to access ther servers file system to repair such stuff.
How can I either disable the firewall completely manually using the filesystem?
or
How can I manually add a rule into ufw that allows ssh access?
I tried to set a rule in /lib/ufw/user.rules but it did not work.
Any help is appreciated.
Thanks for your answer. I was about to go forward with your solution and then I saw the "enabled = yes" switch in the ufw config file. This was even easier. – caliph – 2016-01-22T20:21:39.297