-
-
Save KennyStier/c9e6a7f1b9a8cd31d6550f47f7202a3a to your computer and use it in GitHub Desktop.
rwget: wget through ssh tunnel
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
#!/usr/bin/env bash | |
# TODO: replace your-hostname-here.com | |
server="your-hostname-here.com" | |
if [ $# -lt 1 ] ; then | |
echo "usage: rwget URL" | |
exit 1 | |
fi | |
ssh $server wget --no-use-server-timestamps -O - $1 >> "${1##*/}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can be extremely useful when trying to test the public availability of a webserver on your network