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 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

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

We will connect from the following IPs: 37.143.10.215, 116.203.138.11, 178.88.167.98,...

Why do I have Poralix's SSH key on my server?

When you order a service from Poralix, that includes connecting to a Linux server of yours, we...

Response Time and Resolution Time

For support tickets during normal business days, we offer and guarantee an initial response...

How to disable access for Poralix?

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

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...