dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 76cc4647f1f6b64e5110e3333dd72c946913dd96
parent 2cbdc86faaf5007ce6e57c9fadaef26affd8a11b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  7 Jun 2018 15:50:59 -0400

Add preliminary VNC tunnel config, update bookmarks

Diffstat:
Mlinks/.w3m/bookmark.html | 2++
Mlinks/bin/gfdl-ssh | 17+++++++++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/links/.w3m/bookmark.html b/links/.w3m/bookmark.html @@ -80,6 +80,8 @@ <li><a href="https://golang.org/doc/">Go Documentation</a> <li><a href="http://mywiki.wooledge.org/BashGuide">BashGuide - Greg Wooledge's Wiki</a> <li><a href="https://jekyllrb.com/docs/home/">Jekyll Docs</a> +<li><a href="http://fortranwiki.org/fortran/show/HomePage">Fortran Wiki</a> +<li><a href="https://gcc.gnu.org/onlinedocs/gfortran/">GNU Fortran Docs</a> <!--End of section (do not delete this comment)--> </ul> <h2>Weather</h2> diff --git a/links/bin/gfdl-ssh b/links/bin/gfdl-ssh @@ -2,6 +2,19 @@ # for tput commands: see `man 5 terminfo` tmux rename-window gfdl echo "$(tput setaf 1)## Make sure to connect to Princeton VPN (Connect\ Tunnel.app) first ##$(tput sgr0)" + pass -c Uni/noaa-rsa-pin -echo "$(tput setaf 2)# Paste passphrase from clipboard (Cmd-v) + 6 RSA fob digits$(tput sgr0)" -ssh Anders.Damsgaard@ssh-rsa.gfdl.noaa.gov + +workstation=ldt-1467463 # GFDL workstation hostname +port=26075 # `echo "$(id -u) + 5900" | bc` on gfdl workstation + +if [ "$1" = "vnc" ]; then + + echo "$(tput setaf 3)Establishing SSH tunnel to GFDL gateway$(tput sgr0)" + ssh -X -L5905:${workstation}:${port} Anders.Damsgaard@ssh-rsa.gfdl.noaa.gov + ssh $workstation + +else + echo "$(tput setaf 2)# Paste passphrase from clipboard (Cmd-v) + 6 RSA fob digits$(tput sgr0)" + ssh -Y Anders.Damsgaard@ssh-rsa.gfdl.noaa.gov +fi