• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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