I'm new to ufw, and followed this link and entered exact command as instructed.
ufw allow ssh 2222
Since my SSH is 2222, I want to add that rule in, but I kept getting
ERROR: Need 'to' or 'from' clause
Any hints for me ? I don't want to get lock out.