You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π Step 1: SSH-Add to set up the ssh-agent to use your ssh key
ssh-add -l /path/to/id_rsa # or /path/to/id_ed25519
π°οΈ Step 2: Open an SSH SOCKS Proxy Tunnel (localhost-only)
# Establish SOCKS5 proxy on localhost:1080 via the VPC bastion server# This tunnel makes your local machine behave as if it has a "network cable"# plugged directly into the VPC (10.15.0.0/16) β but only for apps configured# to use this proxy.
ssh -D 1080 [email protected]
π Step 3 (Optional): Route Commands or Tools Through the Tunnel
# Example: Use curl over the tunnel to reach a private IP in the VPC
curl --socks5 127.0.0.1:1080 http://10.15.3.42
# Example: Launch your devbox container and configure tools inside to use proxy# (Note: docker itself wonβt auto-proxy β apps inside must be proxy-aware)
docker run -it --rm jpalala/joesdevenv
# Inside container, set proxy manually when needed:export ALL_PROXY=socks5://127.0.0.1:1080
π Visual Overview
ββββββββββββββ SSH Tunnel (-D) βββββββββββββββββββββββββ
β Your Host ββββββββββββββββββββββββββββββββββΆβ Bastion Server β
β (Windows / β SOCKS5 on 127.0.0.1:1080 β bastion.vpc.example.comβ
β Devbox) β ββββββββββ¬ββββββββββββββββ
ββββββ¬ββββββββ β
β All proxied traffic goes through tunnel β
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Access to VPC-only IPs
e.g. 10.15.0.0/16
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