Last active
April 7, 2021 14:06
-
-
Save olssonm/6840fe8dc1b729c5a2d4d78c124867e4 to your computer and use it in GitHub Desktop.
SSH proxy with curl
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
# Enabling proxy | |
ssh -D 8080 -f -C -N username@server | |
# Tunnelling via proxy | |
curl -v --socks5-hostname 0:8080 icanhazip.com | |
# Killing process | |
ps -C ssh | |
kill {PID} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment