Interview Prep/Linux/Networking, SSH & Scheduling

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.

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling