To allow access to a node managed by slurm (using Ubuntu 14.04):
Install the pam package for slurm on the node you want to allow access: sudo apt-get install libpam-slurm
Modify the /etc/pam.d/common-auth file (for Ubuntu) and add the following line: account required /lib/security/pam_slurm.so (see /usr/share/doc/libpam-slurm/README for more d'information)
(Optional) Disable access restriction with ssh to the node AllowUsers ... dans /etc/ssh/sshd_conf