Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created October 15, 2009 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinabrahms/211392 to your computer and use it in GitHub Desktop.
Save justinabrahms/211392 to your computer and use it in GitHub Desktop.
# View remote html on your local box
#
# The following snippet will open a local firefox
# with the contents of a remote html file. The
# assumption is you have an ssh server running
# locally. It would also help if you have ssh keys
# set coming and going.
ssh -R 10999:localhost:22 justinlilly.com
TRANS_FILE='/tmp/myfile.html' ssh localhost -p 10999 "scp justinlilly.com:$TRANS_FILE /tmp/tmp.html && firefox --display=:0.0 file:///tmp/tmp.html; rm /tmp/tmp.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment