Thursday 26 June 2014

SSH not working after removing Cloudlinux

   Usually we just remove Cloudlinux kernel from the server and reboot the server to run with normal CentOS kernel. After rebooting the server, we might face SSH access to the server. The server will prompt password and after entering the password, it will show 'Lost Login' details then you face "Connection Closed" issue.

Cause:

   While removing Cloud-Linux from the server, the pam module of sshd service still remains on the server. This caused unable to access the server through SSH.

   The caused pam module is pam_lve.so.


Solution:

  You need to comment the below line in the file called /etc/pam.d/sshd (login the server through KVM or any other interface you have to access the server shell)

   session required pam_lve.so 500 1 wheel,other

No comments:

Post a Comment