Created
October 15, 2009 23:36
-
-
Save justinabrahms/211392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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