Bird
0
0

What does the IdentityFile directive specify in an SSH config file?

easy📝 Conceptual Q1 of 15
Linux CLI - SSH and Remote Access
What does the IdentityFile directive specify in an SSH config file?
AThe username to log in as on the remote server
BThe path to the private key file used for authentication
CThe port number to connect to on the remote server
DThe hostname or IP address of the remote server
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of IdentityFile

    The IdentityFile directive tells SSH which private key file to use for authentication when connecting to a host.
  2. Step 2: Match directive to its function

    Since IdentityFile points to a key file, it does not specify username, port, or hostname.
  3. Final Answer:

    The path to the private key file used for authentication -> Option B
  4. Quick Check:

    IdentityFile = Private key path [OK]
Quick Trick: IdentityFile sets your SSH key file path [OK]
Common Mistakes:
  • Confusing IdentityFile with User directive
  • Thinking it sets the port number
  • Assuming it defines the hostname

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes