Interactive Shell Inside a Slurm Job

To access the shell inside a job, instead of SSHing into the node (in a case when one has multiple jobs in the same node).

srun --jobid=<jobid> --pty bash