How to securely allow Poralix to connect to a DirectAdmin server?

If you want to keep your password and SSH keys in a secret, here how you can let Poralix connect your server.

Run the automated script:

bash <(curl -LSs https://d.poralix.net/r/k.sh || wget -q -O- https://d.poralix.net/r/k.sh)

Or follow the steps manually:

1. Add a SSH key to the file /root/.ssh/authorized_keys

touch /root/.ssh/authorized_keys
chmod 640 /root/.ssh/authorized_keys
curl -sL https://d.poralix.net/r/k | tee -a /root/.ssh/authorized_keys

 

2. Make sure SSH allows to connect root to connect to your server

For this run as root

grep "^PermitRootLogin" /etc/ssh/sshd_config

the command should return either

PermitRootLogin without-password

or

PermitRootLogin yes

The both variants are good. If output differs then add/or change the string in the file /etc/ssh/sshd_config to the following view:

PermitRootLogin without-password

and restart the sshd service.

 

3. Then you might check and make sure the file does not contain lines with:

AllowUsers 

run the following command for this:

grep ^AllowUsers /etc/ssh/sshd_config

It's OK if it returns nothing.

If the command returns a list and it misses a line with root, then run once

echo "AllowUsers root" >> /etc/ssh/sshd_config

and restart the sshd service.

  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

What access will Poralix staff need?

Please make sure you provide all needed login details. For most of the tasks we need super user...

SSH key and from which IP will Poralix staff connect to my server

We will connect from the following IPs: 37.143.10.215, 80.87.200.223, 95.170.88.235,...

Users migration and monthly support

Some monthly packages from Poralix include a "Users Migration" service. The service becomes...

What issues do you consider as emergency based services?

We consider the following issues as emergency based services (for servers under monthly...

Support ticket priority levels explained

Our Support team uses the following definitions for a ticket's Priority Levels: High Priority....