Bird
0
0

Given this SSH config snippet:

medium📝 Command Output Q13 of 15
Linux CLI - SSH and Remote Access
Given this SSH config snippet:
Host myserver
  HostName 192.168.1.10
  User alice
  Port 2200

What command will connect to the server using this config?
Assh myserver
Bssh alice@192.168.1.10 -p 2200
Cssh 192.168.1.10
Dssh -p 22 myserver
Step-by-Step Solution
Solution:
  1. Step 1: Understand the config usage

    The config defines a shortcut myserver with hostname, user, and port. Using ssh myserver applies all these automatically.
  2. Step 2: Analyze options

    ssh myserver uses the shortcut. ssh alice@192.168.1.10 -p 2200 manually specifies user and port but bypasses the config shortcut. ssh 192.168.1.10 misses user and port. ssh -p 22 myserver uses wrong port.
  3. Final Answer:

    ssh myserver -> Option A
  4. Quick Check:

    Use shortcut name to connect with config settings [OK]
Quick Trick: Use the Host shortcut name to connect easily [OK]
Common Mistakes:
  • Ignoring the shortcut and typing full command
  • Using default port 22 instead of configured port
  • Missing the username from config

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes