#!/bin/sh if [[ $1 == remote ]]; then echo 'Connecting ucb cs161 autograde machine...' u=atw ssh -t cs161-$u@hive$((36#${u:2}%26+1)).cs.berkeley.edu \~cs161/proj1/start else echo 'Connecting localhost...' sshpass -p r4e8kWpeFC ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no vsftpd@localhost -p 16161 fi