Skip to main content

๐Ÿ” 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!


Was this article helpful?

More in Debian OS

Not finding what you are looking for?

Chat with us or send us an email. Chat is open 24/7 through the bubble at the bottom right.

Send us an email