#!/bin/bash 

RASP_PI="${1}"

sshpass -p ml_pipw ssh -o StrictHostKeyChecking=no "pi@$RASP_PI" /bin/bash <<EOF1

echo "Which port's status would you like to change: 1, 2, or 3? "
read port

EOF1

程序在没有错误的情况下炸弹并提示用户输入