• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question SSH Access per account

SquanchIt

New Pleskian
Hey guys,

I want to create a script that will SSH into a particular Plesk account and then use WP CLI to export the WordPress database for the particular account, and then download the SQL file to my localhost, etc...

Now the issue is that I can't figure out how to establish an SSH connection for a particular plesk account. I went ahead and installed SSH Keys Manager module on Plesk, then I added my SSH key, but when i try to establish a connection with a certain plesk account accountxxx@IP, it seems to connect but then it says connection closed.
 
Log in to your hosting Control Panel
Click on Website & Domains > Web Hosting Access
Under the Section System user change the option for Access to the server over SSH from the default Forbidden for example to /bin/bash (chrooted)
The credentials used to access via SSH are the FTP Username and Password on Port 22
Host: Domain Name
Username: FTP Username
Password: FTP Password
Port: 22
Click OK to save the new settings.
Access to the server over SSH is only supported for the default FTP user account.

login via key added to keymanager extension under the domain also works
 
only via cli and you have to configure the sshd_config to allow only ssh connection via keyfile
 
Back
Top