[SPARK-3584] sbin/slaves doesn't work when we use password authentication for SSH

I agree with matt - this will regress behavior for other users. Can we have a flag called `SSH_FOREGROUND` that turns this on?