• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • 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.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

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