Systems Administrator

Case File: Which Line Wins

The database server is only reachable through a bastion host, and ~/.ssh/config was started and abandoned. At a simulated Linux prompt, read what ssh would use with ssh -G, then rewrite the file so that bastion logs in as ops, db-prod goes through the bastion as deploy with its own key, and every other host keeps the defaults. The first value wins, so the Host * block must come last: blocks added below it lose. The checks resolve the file for several host names.

50 min

Case File: Which Line Wins

The database server is only reachable through a bastion host, and ~/.ssh/config was started and abandoned. At a simulated Linux prompt, read what ssh would use with ssh -G, then rewrite the file so that bastion logs in as ops, db-prod goes through the bastion as deploy with its own key, and every other host keeps the defaults. The first value wins, so the Host * block must come last: blocks added below it lose. The checks resolve the file for several host names.

In this lesson:

  • ssh
  • ssh config
  • proxyjump
  • bastion
  • console
  • case-file

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans