Friend asked how to disable users ssh or scp to the machine which has freenx installed . only allow users nxclient login.
1. enable access.so in /etc/pam.d/system-auth
2. configure /etc/security/access.conf ( please read this file, follow the format)
below is a simple one, only allow user mike nxclient login; and allow user jackie ssh from 192.168.10.0/24
+ : nx : ALL
- : ALL : ALL