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.

About the Author

Shahid Malla

Shahid Malla is an accomplished system admin and web developer, renowned for his expertise in various fields. With a strong background in WHMCS development, WordPress development, and PHP development, Shahid has honed his skills over the years to deliver exceptional results. As a top-rated freelancer, he has consistently garnered praise and recognition, earning a stellar 5-star rating from a pool of 500 reviews. Shahid's proficiency extends beyond coding and development, encompassing server configuration, server management, and web security. With his extensive knowledge and dedication to delivering high-quality solutions, Shahid Malla is your go-to professional for all your technical needs.

View All Articles