• 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 and actually use existing SSH Keys for Plesk Accounts

MHC_1

Regular Pleskian
Server operating system version
AlmaLinux 9
Plesk version and microupdate number
Obsidian
Situation: We have a bunch of generated public/private keys on our work machines. These machines use custom key generation via winSCP options.

I am coming from WHM ; which had a very easy to use and practical approach to setting and implementing SSH Keys for accessing accounts via SFTP. This allowed me to "paste" WinSCP keys into the WHM interface to save the public key to the server.

Plesk; however, it's a mess. Please help.

I have the app "Extension" that is the SSH Keys Manager. This tells me :
  1. Open a subscription.
  2. Go to Web Hosting Access > Access to the server over SSH.
  3. Select /bin/sh and click OK.
I have completed the above actions.

I have also read this article: https://support.plesk.com/hc/en-us/articles/12377591587863-How-to-set-up-SSH-keys-for-Plesk-server which is not helpful. This simply tells me how to generate a NEW key this is not about how to import a (public) key to the Plesk Server.

1) How do I import a public Key to the Plesk Server for a specific domain/account?

1b) It seems dangerous to store keys in the server wide `/root/.ssh/` folder. Typically elsewhere keys are stored on a per-account basis. Also how do I tell the system which keys are for which accounts?

2) How do I force Plesk to only accept SSH access via SFTP to that domain/account?

Thank you!
 
Yeah, unfortunately some features are pretty hidden in the UI. You can access the SSH keys option for each subscription by opening the right side panel using the little icon in the top right corner, which will list the SSH keys options you can use to add SSH keys.

Screenshot 2025-04-08 143322.jpg
 
Back
Top