Mercurial > index.cgi > dotfiles
comparison .bash_aliases @ 65:89650cf05c4c
* Cluster 'dsh'
| author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
|---|---|
| date | Tue, 10 Jul 2012 19:07:43 +0000 |
| parents | 0698aaf2fd33 |
| children | 594349918d47 |
comparison
equal
deleted
inserted
replaced
| 64:0698aaf2fd33 | 65:89650cf05c4c |
|---|---|
| 49 | 49 |
| 50 # Export some of those above for the benefit of future shells | 50 # Export some of those above for the benefit of future shells |
| 51 export DFSTAT MDATE TDSTAT HDATE | 51 export DFSTAT MDATE TDSTAT HDATE |
| 52 | 52 |
| 53 # SSH aliases | 53 # SSH aliases |
| 54 alias 13='ssh cses13' | |
| 54 alias dh='ssh srhuston.net' | 55 alias dh='ssh srhuston.net' |
| 55 alias j='ssh joshua.srhuston.net' | 56 alias j='ssh joshua.srhuston.net' |
| 56 alias keys='ssh-add $HOME/.ssh/*.pvt' | 57 alias keys='ssh-add $HOME/.ssh/*.pvt' |
| 57 alias r='ssh -l root' | 58 alias r='ssh -l root' |
| 59 alias r13='ssh -t cses13 screen -raAx' | |
| 60 alias rj='ssh -t joshua.srhuston.net screen -raAx' | |
| 61 alias rx='ssh -t xanadu.astro.princeton.edu screen -raAx' | |
| 58 alias roc='ssh zenoss@rocinante' | 62 alias roc='ssh zenoss@rocinante' |
| 59 alias s=ssh | 63 alias s=ssh |
| 60 alias x='ssh xanadu.astro.princeton.edu' | |
| 61 t() { | 64 t() { |
| 62 T_HOST=xanadu.astro.princeton.edu | 65 T_HOST=xanadu.astro.princeton.edu |
| 63 if [ -n "$2" ] ; then | 66 if [ -n "$2" ] ; then |
| 64 T_HOST=$2 | 67 T_HOST=$2 |
| 65 fi | 68 fi |
| 66 ssh -t $T_HOST "ssh $1" | 69 ssh -t $T_HOST "ssh $1" |
| 67 } | 70 } |
| 68 alias 13='ssh cses13' | |
| 69 alias t13='t cses13' | 71 alias t13='t cses13' |
| 70 alias r13='ssh -t cses13 screen -raAx' | |
| 71 alias tr13='t "-t cses13 screen -raAx"' | 72 alias tr13='t "-t cses13 screen -raAx"' |
| 72 alias rj='ssh -t joshua.srhuston.net screen -raAx' | 73 alias x='ssh xanadu.astro.princeton.edu' |
| 73 alias rx='ssh -t xanadu.astro.princeton.edu screen -raAx' | 74 |
| 75 export CLUSTERLIST="adroit artemis della hecate oldhecate orbital sesame tigressdata" | |
| 76 cdsh() { | |
| 77 for H in $CLUSTERLIST ; do | |
| 78 echo $H": " | |
| 79 ssh $H $@ | |
| 80 done | |
| 81 } | |
| 74 | 82 |
| 75 # Remote desktop/VNC | 83 # Remote desktop/VNC |
| 76 eval "alias xvnc='ssh -L9910:localhost:5901 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9910 &'" | 84 eval "alias xvnc='ssh -L9910:localhost:5901 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9910 &'" |
| 77 eval "alias xanadu='ssh -L9920:localhost:5900 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9920 &'" | 85 eval "alias xanadu='ssh -L9920:localhost:5900 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9920 &'" |
| 78 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"/sbin/ether-wake 00:17:f2:01:d2:3c ; sleep 30\"; sleep 10; ${VNCVIEWER}localhost:9930 &'" | 86 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"/sbin/ether-wake 00:17:f2:01:d2:3c ; sleep 30\"; sleep 10; ${VNCVIEWER}localhost:9930 &'" |
