Created
September 29, 2021 10:06
-
-
Save jlis/a1eeb97d2b3b01298fb5215029dacc2e to your computer and use it in GitHub Desktop.
HTTP tunnel via SSH
This file contains hidden or 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
# Install asyncssh (https://github.com/ronf/asyncssh) via Pip | |
pip3 install asyncssh | |
# Install pproxy (https://github.com/qwj/python-proxy) via Pip | |
pip3 install pproxy | |
# Start pproxy to connect to remote host via SSH using username and private key, listening on localhost:8080 | |
pproxy -l http://:8080 -r ssh://<REMOTE HOST IP/HOSTNAME>/#<SSH USER NAME>::<ABSOLUTE PATH TO SSH PRIVATE KEY> | |
# Start pproxy to connect to remote host via SSH using username and password, listening on localhost:8080 | |
#pproxy -l http://:8080 -r ssh://<REMOTE HOST IP/HOSTNAME>/#<SSH USER NAME>:<SSH PASSWORD> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment