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.