• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question How To Set Up Plesk Root Login via SSH With External SSH Keys

MHC_1

Regular Pleskian
Server operating system version
AlmaLinux 9
Plesk version and microupdate number
Plesk 18
How To Set Up Plesk Root Login via SSH, With External SSH Keys

I am having trouble establishing the method process to do this. There are numerous similar topics, and numerous topics that cover parts of this topic ( Resolved - What steps need to be taken to enable SSH root access through the SSH terminal extension? - for example using SSH keys for terminal access within Plesk framework ).


Situation:

- There is a Plesk server with account level SSH keys. These work fine.
- This server has SSH root level access from a few external sources - eg Filezilla or WinSCP
- This server needs these root accesses to be SSH keyed -- I would hope the local office machines keep the Private Key and only the public SSH Key is given to the Plesk server to check when logging in.
- We have
Code:
/etc/ssh/config_sshd
correctly set up with
Code:
PermitRootLogin prohibit-password
.

Question:

- Where on the file system do we put the SSH Root key and associate it with the root login referenced above?
- The keys will be generated off-server.
 
UPDATE: To clarify; I believe I need to stick the keys in /root/.ssh/<keyname> but I don't then know how to set these keys (or one of them) as the actual one to be required when SSH logs in.
 

SOLUTION:


This is not a Plesk issue exactly, but the `authorized_keys` file needs to have the key encryption type set inside the file before the key hash value, separated by a whitespace .

WRONG:

Code:
ssh-rsa AAAAB3 ... obscured ... w+P1bZNsUU0Zw== plesk-ssh-terminal
AAAAB ... my obscured public key ... rM5sO9/8JgiEw== my-public-key

RIGHT:

Code:
ssh-rsa AAAAB3 ... obscured ... w+P1bZNsUU0Zw== plesk-ssh-terminal
ssh-rsa AAAAB ... my obscured public key ... rM5sO9/8JgiEw== my-public-key


This was the issue I was specifically having.
 
Back
Top