huang zuxing blog @ home the quieter you become, the more you are able to hear.

17Oct/16Off

disable ssh/scp , configure freenx login only

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

access.so

 

 

 

 

 

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

+ : root : ALL
+: jackie:192.168.10.0/24
+:mike:localhost
+:mike:localhost.localdomain
+ : nx : ALL
- : ALL : ALL

 

Related Post

Filed under: IT Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.