Skip to content

Commit

Permalink
fix: slurmcluster uses wrong host to kill sshd procs for the user (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoksc authored and NicholasBlaskey committed Oct 4, 2023
1 parent ba33ca8 commit f114af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/slurmcluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ if [ $SKIP_DEVCLUSTER_STAGE -eq 0 ]; then
fi
if [[ -n $INTUNNEL || -n $TUNNEL ]]; then
# Terminate any tunnels (non-interactive sshd proceses for the user)
ssh $OPT_MASTERHOST pkill -u '$USER' -x -f '"^sshd: $USER[ ]*$"'
ssh ${OPT_REMOTEUSER}$SLURMCLUSTER pkill -u '$USER' -x -f '"^sshd: $USER[ ]*$"'
fi
if [[ -n $INTUNNEL ]]; then
mkintunnel $OPT_LAUNCHERACTUALHOST $OPT_LAUNCHERPORT ${OPT_REMOTEUSER}$SLURMCLUSTER &
Expand Down

0 comments on commit f114af8

Please sign in to comment.