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 djanicekpach committed Feb 29, 2024
1 parent 148fd9c commit 166517a
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 166517a

Please sign in to comment.