• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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