Bird
0
0

Why does this SSH config fail to connect properly?

medium📝 Debug Q7 of 15
Linux CLI - SSH and Remote Access
Why does this SSH config fail to connect properly?
Host webserver
  HostName 192.168.1.100
  User root
  Port twenty
AUser 'root' is not allowed in config
BHostName must be a domain, not IP
CPort value 'twenty' is invalid, must be a number
DHost keyword is missing
Step-by-Step Solution
Solution:
  1. Step 1: Check Port directive value

    Port must be a numeric value; 'twenty' is invalid.
  2. Step 2: Validate other directives

    User root is valid, HostName can be IP, Host keyword is present.
  3. Final Answer:

    Port value 'twenty' is invalid, must be a number -> Option C
  4. Quick Check:

    Port must be numeric [OK]
Quick Trick: Port must be a number, not words [OK]
Common Mistakes:
  • Using words instead of numbers for port
  • Thinking root user is disallowed
  • Assuming HostName must be domain

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes