Thank you Lars and Herman for the helpful information. I just went to my box and manually enabled SSH port, so now I can remotely access the computer via SSH again.
I tried to use AT job to turn on a port, but it didn't work, I am new to this, so can anyone help me?
1. Create a sh command
Code:
touch ufwtools.sh
echo "sudo ufw allow 80">>ufwtools.sh
2. Make it executable
Code:
chmod +x ufwtools.sh
3. Set up the AT job
Code:
at now + 5 minutes -f ~/tools/ufwtools.sh
However, I check UFW status after 5 minutes, nothing has changed. Is it because sudo needs password?
Bookmarks