Server Software and Configuration Services
Enabling ConfigServer Public Key Access
On cPanel/WHM
- Login to WHM and go to Security Center > Manage root’s SSH keys
- Click “Import Key”.
- In the bottom box, “Paste the Public key in this box:”, paste the following, all on one line:
- Then go to the first box (“Choose a name for this key”) and enter ConfigServer in the box if necessary
- Click “Import”.
- Click “Return to SSH Key Manager”.
- Click “Manage Authorization” for the Configserver SSH key and then click Authorize.
On DirectAdmin
- Login to ssh on the server as root.
- Run the following commands:
touch /root/.ssh/authorized_keys
chmod 600 authorized_keys - Edit the file authorized_keys:
nano -w /root/.ssh/authorized_keys - Paste in the ConfigServer public SSH key, all on one line.
- Save the file and exit.
- Edit the file /etc/ssh/sshd_config. Ensure that the directive PermitRootLogin is NOT set to no. If it is, change it to yes. If it is commented out and set to yes, you can uncomment it or leave it as the default.