Unable to login to cPanel/Plesk via SSH with root user

5/5 - (1 vote)

When you are unable to login using ssh into your root that means something is stopping you to enter which is imunify360 it happens when imunify360 is not uninstalled completely, however, this is the worst thing from imunify360!

You seem to have installed Imunify360 at some point on your VPS or dedicated server. This installation is either broken or has been removed incorrectly resulting in leftover references to “pam_imunify.so” in your PAM files under /etc/pam.d. You have commented out those references and you can now log in again via SSH.

For Plesk

  1. Log in to Plesk.
  2. Install SSH Terminal extension and login to the server.
  3. Comment out corresponding lines in /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows, e.g. using Vi:#%PAM-1.0

    #auth required pam_imunify.so check_only

    #auth required pam_imunify.so

For cPanel

  1. Login to Server using whm or Recuse Mode or VNC Mode
  2. Modify This file: nano /etc/pam.d.
  3. remove or comment pam_imunify.so and all related to imunify.

Total
0
Shares
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Previous Post
How To Stop, Disable And Enable Firewalld on Linux Server

How To Stop, Disable And Enable Firewalld on Linux Server

Related Posts
Total
0
Share
0
Would love your thoughts, please comment.x
()
x