How to allow only users with running jobs to access compute nodes via ssh?

How administrators manage access to compute nodes by users?

torque and slurm having pam modules to restrict ssh access to compute nodes. Which will allow ssh access to compute nodes for normal users only when job is running. How we can achieve the same in open github version pbspro.

Please set this attribute on the compute node :

source /etc/pbs.conf
cd $PBS_HOME/mom_priv/
vi config # and add the below line
$restrict_user True

Restart the PBS MoM services
/etc/init.d/pbs restart # init.d systems
systemctl restart pbs # for systemd

Hearty Thanks. It’s working as expected.

1 Like