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

IMPORTANT: Once a ticket issue is resolved, please remove the key from the file. Check the article https://go.poralix.com/k7 for more information.

 

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.

 

  • 51 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

What access will Poralix staff need?

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

Support ticket priority levels explained

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

What issues do you consider as emergency based services?

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

How to disable access for Poralix?

When a server administrator from Poralix connects to a Linux server over SSH, a Poralix's SSH key...

Users migration and monthly support

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