Bird
0
0

In an SSH config file, what does the Host * entry mean?

easy📝 Conceptual Q2 of 15
Linux CLI - SSH and Remote Access
In an SSH config file, what does the Host * entry mean?
AIt matches only hosts named literally '*'
BIt disables SSH connections to all hosts
CIt matches hosts with names starting with '*'
DIt matches all hosts not matched by previous entries
Step-by-Step Solution
Solution:
  1. Step 1: Understand wildcard usage in Host entries

    The asterisk (*) is a wildcard that matches any hostname.
  2. Step 2: Placement of Host * in config

    Host * matches all hosts not matched by earlier Host entries, acting as a default.
  3. Final Answer:

    It matches all hosts not matched by previous entries -> Option D
  4. Quick Check:

    Host * = Default catch-all [OK]
Quick Trick: Host * acts as a default for unmatched hosts [OK]
Common Mistakes:
  • Thinking it disables all connections
  • Assuming it matches literal '*' hostname
  • Believing it matches only hosts starting with '*'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes