How do you reach a private server through a bastion?
IntermediateConceptNetworking, SSH & Scheduling
Answer
ssh -J [email protected] [email protected]
Or in ~/.ssh/config:
Host bastion
HostName bastion.example.com
User ec2-user
Host 10.0.*
ProxyJump bastion
User ubuntu
IdentityFile ~/.ssh/prod_ed25519
The session is end-to-end encrypted to the target; the bastion only forwards TCP, and no keys sit on it.
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?Beginner