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

why cat here and echo later?