Short answer: On Ubuntu/Debian use UFW to allow only needed ports. Never enable UFW before adding an SSH (22) allow rule.
To avoid lockout on VDS, know how to open VNC Console from the client area first. Create a support ticket
1 times viewed | 0 people fount it helpful