Skip to content

Instantly share code, notes, and snippets.

@KennyStier
Forked from forresty/rwget.sh
Last active January 15, 2018 20:36
Show Gist options
  • Save KennyStier/c9e6a7f1b9a8cd31d6550f47f7202a3a to your computer and use it in GitHub Desktop.
Save KennyStier/c9e6a7f1b9a8cd31d6550f47f7202a3a to your computer and use it in GitHub Desktop.
rwget: wget through ssh tunnel
#!/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##*/}"
@KennyStier
Copy link
Author

Can be extremely useful when trying to test the public availability of a webserver on your network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment