πŸ” Enabling Remote Root SSH Access

πŸ” Enabling Remote Root SSH Access

Sometimes, ggCircuit staff may request that you enable remote SSH access as the root user. This allows them to assist with system administration, image backups/restores, or troubleshooting.

⚠️ Heads-up: Allowing remote root access over SSH is generally not recommended for long-term use. If possible, consider creating a separate administrative user instead. If you do proceed, be sure your root password is strongβ€”at least 12+ characters, ideally randomized.


πŸ› οΈ How to Enable Root Login via SSH

You can enable remote root access by running the following commands on your Debian-based server:

sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config systemctl restart sshd.service

βœ… Tip: If you're using the Debian Control Panel, it's a good idea to make these changes there for easier management.


🚫 Disabling Root Access (When You're Done)

As soon as remote assistance is no longer needed, it’s highly recommended to disable root access again to protect your system:

sed -i 's/PermitRootLogin yes/#PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config systemctl restart sshd.service

Keeping your system secure is always the priority. Let us know if you need help creating a secure admin user instead!