SSH Tunnel

Tunneling is a very useful technique for getting around blocks and for creating an encrypted channel to move data through.
SOCKS
ssh -ND 8888 julio@host
Parameters:
-N: does not run commands-D: runs a proxy server on the given port-f: runs in the background-C: turns on compression
Firefox
Edit » Preferences » Advanced » Settings… » Manual proxy configuration:
SOCKS Host:localhostPort:8888
Chromium
$ chromium --proxy-server="socks5://localhost:8888" \
--proxy-bypass-list="192.168.15.10;127.0.0.1:8080;*.google.com" \
--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost"
Jump Server
Say there is a database (PostgreSQL on port 5432) that is only reachable from the local network. If you have SSH access to a machine on that network, you can talk to the database like this:
ssh -N -L 127.0.0.1:5434:$DB_HOST:5432 my_server
pg_dump --verbose --create --schema-only --no-owner -d db_name -h localhost -p 5434 -U user --password -f dump.sql

I’m a Brazilian-German computer engineer based in Germany, passionate about tech, science, photography, and languages.
I’ve been programming for about two decades already, exploring everything from mobile apps and web development to machine learning. These days I focus on cloud SRE and data engineering.
I volunteer in the open source and Python communities, helping organize PyCon DE and PyData Berlin, serving on the PSF D&I Work Group, mentoring, and contributing code and translations.
On my blog, I share Linux tips, setup guides, and personal notes I’ve written for future reference. I hope others find them helpful as well. The content is available in multiple languages.
Browse my gallery for some of my photography.
Away from the keyboard, you’ll find me at concerts, playing clarinet, cycling, scuba diving, or exploring new places, cultures, and cuisines.
Always happy to connect! 🙂