Articles on: ggRock

🔐 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!


Updated on: 10/12/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!