I locked myself out of SSH. What now?#
Use the browser KVM console in the control panel — it attaches to the virtual machine's display and keyboard directly, so it works regardless of firewall rules, sshd configuration or network state. From there log in at the console with the root password, fix the problem, and reload sshd. If you have also lost the root password, boot into single-user mode by editing the GRUB entry from the same console and appending "init=/bin/bash" to the kernel line.