Skip to content
Snippets Groups Projects
ssh.sh 912 B
Newer Older
Recolic Keghart's avatar
Recolic Keghart committed
#!/bin/sh
Recolic Keghart's avatar
Recolic Keghart committed
if [[ $1 == remote ]]; then
    echo 'Connecting ucb cs161 autograde machine...'
    u=atw
Recolic Keghart's avatar
Recolic Keghart committed
    echo ssh -t cs161-$u@hive$((36#${u:2}%26+1)).cs.berkeley.edu \~cs161/proj1/start
Recolic Keghart's avatar
Recolic Keghart committed
    ssh -t cs161-$u@hive$((36#${u:2}%26+1)).cs.berkeley.edu \~cs161/proj1/start
else
    echo 'Connecting localhost...'
Recolic Keghart's avatar
Recolic Keghart committed
    #sshpass -p r4e8kWpeFC ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no  vsftpd@localhost -p 16161
Recolic Keghart's avatar
Recolic Keghart committed
    #sshpass -p 37ZFBrAPm8 ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no  smith@localhost -p 16161
Recolic Keghart's avatar
Recolic Keghart committed
    #sshpass -p mXFLFR5C62 ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no  brown@localhost -p 16161
Recolic Keghart's avatar
Recolic Keghart committed
    #sshpass -p cqkeuevfIO ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no  jz@localhost -p 16161
    sshpass -p Bw6eAWWXM8 ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no  jones@localhost -p 16161
Recolic Keghart's avatar
Recolic Keghart committed

Recolic Keghart's avatar
Recolic Keghart committed
fi