So the Spyder IDE has this great feature to connect a local/laptop/workstation to a spyder-kernels session https://docs.spyder-ide.org/current/panes/ipythonconsole.html#using-external-kernels. If a user starts an interactive, e.g., srun session, they end up on a compute node which is on one of our older clusters without the pam_slurm_adopt module. Is there a way with a library like Parmiko or this slurmjob https://github.com/daangeijs/deepops-slurmjob package?
I see for vscode an admin posted the following option https://github.com/microsoft/vscode-remote-release/issues/1722#issuecomment-2689678595 : if [[ -v SSH_AUTH_SOCK ]]; then
if [[ ${SSH_AUTH_SOCK} =~ vscode ]];
then
[ -f ~/.code-tunnel-env.bash ] && source ~/.code-tunnel-env.bash
fi
fi
Is there a way to work around the restriction of non admins to connect to the spyder-kernel session? Is there anything similar to batchspawner for Jupyterhub https://github.com/jupyterhub/batchspawner?
Unless anyone knows of an archive for Slurm slurm-ohpc-18.08 that includes pam_adopt?