Article overview

Help article

Why can't I login via SSH as root on a VPS with Plesk?

With our installations of web control panels such as DirectAdmin, cPanel or Plesk, SSH-access for the 'root'-account is disabled by default. This is due to security precautions (on average more than 80% of all brute force attacks on port 22 use 'root' as a user). If you try to log in via SSH as 'root', you will therefore always get a 'Permission denied' output.


So how do I login via SSH on my Plesk-VPS?

We’ll be creating a new user in Plesk that has SSH (and FTP) access. We won’t be giving access to the root user in this guide for security reasons mentioned earlier.

Please note that the steps are slightly different depending on whether you use Plesk with the Power User View or Service Provider View.


Power User View

Step 1

In Plesk click on 'Websites & Domains' > 'webhosting access'.

plesk webhosting and domains - webhosting access


 

Step 2

Add a new user by providing a new username under 'System user', give it a strong password and make sure you change 'Access to server over SSH' from 'forbidden' to /bin/sh/.

plesk web hosting access

Finish by clicking on 'Apply' and then on 'Ok'. That’s it! You can now access your VPS through SSH and FTP with this user.


Service Provider View

Step 1

In the left hand menu, click on 'domains' and then click on the name of your domain in the 'Domains' page.

plesk domains overview


 

Step 2

Click on 'webhosting access' in the management page for your domain that appears.

plesk webhosting and domains - webhosting access


 

Step 3

Add a new user by providing a new username under 'System user', give it a strong password and make sure you change 'Access to server over SSH' from 'forbidden' to /bin/sh/.

plesk web hosting access

Finish by clicking on 'Apply' and then on 'Ok'. That’s it! You can now access your VPS through SSH and FTP with this user.


 

You can now connect over SSH to your Plesk-VPS using the newly created user and switch to the root user using the command:

su root

 

 

Do you have a good idea?

Give us your idea! If it's popular we'll add it to the wishlist!

Has this article been helpful?

Create an account or log in to leave a rating.

Share this article

Comments

Create an account or log in to be able to leave a comment.

Are you stuck?

Ask one of our specialists to assist you

Contact us