Knowledgebase

Can't access SSH due to pam_lve.so module

The pam_lve.so module is part of CloudLinux's Lightweight Virtual Environment (LVE) technology, which provides resource isolation for shared hosting environments. If you're experiencing issues with SSH access due to this module, there are a few steps you can take to troubleshoot and resolve the issue:

  1. Login via Console or KVM:

    • If you're locked out of SSH, try to access your server through a console or KVM interface provided by your hosting provider. This will give you direct access to the server.
  2. Check pam.d Configuration:

    • The pam_lve.so module is usually configured in the PAM (Pluggable Authentication Modules) configuration files. Verify that it's properly set up in /etc/pam.d/sshd or any other relevant PAM configuration files.
  3. Edit PAM Configuration:

    • Open the PAM configuration file (/etc/pam.d/sshd) using a text editor like vi or nano.
    • Look for any lines that reference pam_lve.so and consider commenting on them or modifying them as needed.
    • Save the file and restart the SSH service.
  4. Restart SSH Service:

    • After making changes to the PAM configuration, restart the SSH service to apply the changes. Use the appropriate command for your system, such as systemctl restart sshd.
  5. Check for Syntax Errors:

    • Ensure that there are no syntax errors in the PAM configuration files. A single mistake in the configuration files could cause authentication issues.
  6. Check SELinux and Firewall Rules:

    • Verify that SELinux and any firewall rules are not interfering with SSH connections. SELinux could be blocking certain PAM modules.
  7. Review CloudLinux Documentation:

    • Refer to the CloudLinux documentation or support resources for specific guidance on how to handle issues related to pam_lve.so.
  8. Contact CloudLinux Support:

    • If you're still experiencing issues, consider reaching out to CloudLinux support for assistance. They may have specific troubleshooting steps or insights related to pam_lve.so.
  9. Temporary Disabling:

    • If you need immediate access and are willing to temporarily disable, you can comment out or remove the relevant lines in the PAM configuration. However, be cautious with this approach, as it may impact the intended functionality of CloudLinux's LVE technology.

Remember to always back up any critical files before making changes, and exercise caution when editing system configuration files. If you're not familiar with the configuration, consider seeking assistance from a system administrator or CloudLinux support.

 
  • 0 Users Found This Useful
Was this answer helpful?