Forum / NoMachine for Linux / Login failure using NX authentication with key file / Reply To: Login failure using NX authentication with key file
Problem solved. The issue was that I simply copied /var/NX/nx/.ssh/default.id_dsa.pub to ‘<user’s home>/.nx/config/authorized.crt’ and the entry contained something like:
no-port-forwarding,no-agent-forwarding,command=”/etc/NX/nxserver –login” ssh-dss AAAAB3Nza …
With this entry the authentication didn’t work. After I deleted no-port-forwarding,no-agent-forwarding,command=”/etc/NX/nxserver –login” from the front of the public key, it worked.
Also, I have a question related to restricting the authentication type of a user. By running the following command:
nxserver –uaserauth <user name>
give the authentication type of the user, which in my case returns system. I want to restrict the user to use only authentication via private/public key but I couldn’t find a way to do that. The link
https://www.nomachine.com/DT12I00014
doesn’t say how to impose such restrictions.