Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

How do you reach private servers over SSH through a bastion in one command?

IntermediateScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → ProxyJump chains SSH connections transparently.

What I'd do →

  1. Use ssh -J [email protected] [email protected]
  2. Persist in ~/.ssh/config: Host private-* with ProxyJump bastion
  3. Use agent forwarding carefully, prefer ProxyJump so keys never touch the bastion
  4. Port forward a DB: ssh -L 5432:db.internal:5432 bastion
  5. Audit with SSH logs

Why → ProxyJump keeps your private key on your laptop.

Interview tip → Say SSM port forwarding replaces the bastion entirely.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN