if [ "$2" = "local" ]; then via="" elif [ "$2" = "bastion" ]; then via="-e "ssh $bastion ssh" $login:" ; ssh=1 else via="-e ssh $login:" ; ssh=1 fi