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

@mattf Thank you for reviewing. It makes sense.