Bird
0
0

You need to allow multiple users to securely manage a server but want to restrict them to only running specific commands via SSH. Which SSH feature supports this?

hard📝 Application Q9 of 15
Linux CLI - SSH and Remote Access
You need to allow multiple users to securely manage a server but want to restrict them to only running specific commands via SSH. Which SSH feature supports this?
AAllowing root login without password
BUsing forced commands in the authorized_keys file
CChanging the SSH port to a random number
DDisabling SSH encryption
Step-by-Step Solution
Solution:
  1. Step 1: Understand command restriction in SSH

    SSH allows forced commands tied to specific keys in authorized_keys.
  2. Step 2: Recognize security benefit

    This limits users to only run allowed commands, improving control.
  3. Final Answer:

    Using forced commands in the authorized_keys file -> Option B
  4. Quick Check:

    Restrict commands = forced commands = D [OK]
Quick Trick: Use forced commands in authorized_keys to limit actions [OK]
Common Mistakes:
  • Thinking disabling encryption helps control
  • Assuming port change restricts commands
  • Allowing root login without password is insecure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes