nerdexam
LPI

117-102 · Question #197

The files /etc/hosts.allow, /etc/hosts.deny and /etc/nologin all exist on your computer and the sshd daemon is running. What will happen when users try to connect with ssh?

The correct answer is B. Only root will be allowed to log in. See the full explanation below for the reasoning.

Question

The files /etc/hosts.allow, /etc/hosts.deny and /etc/nologin all exist on your computer and the sshd daemon is running. What will happen when users try to connect with ssh?

Options

  • AOnly connections from computers specified in
  • BOnly root will be allowed to log in.
  • CAll users not specified in /etc/hosts.deny will be
  • DNo user will be allowed to log in.

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    76% (16)
  • C
    5% (1)
  • D
    14% (3)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice