These steps helped me
sudo cp /etc/pam.d/nx /etc/pam.d/nx.ori
sudo cp /etc/pam.d/sshd /etc/pam.d/nx
But I now have new challenge. I am able to login but have the following issue
“The server was unable to make the local display available or access to the local display is disabled.”