nerdexam
LPI

202-400 · Question #146

A system monitoring service checks the availability of a database server on port 5432 of destination.example.com. The problem with this is that the password will be sent in clear text. When using an…

The correct answer is C. ssh -L 5432:127.0.0.1:5432 destination.example.com. See the full explanation below for the reasoning.

Question

A system monitoring service checks the availability of a database server on port 5432 of destination.example.com. The problem with this is that the password will be sent in clear text. When using an SSH tunnel to solve the problem, which command should be used?

Options

  • Assh -1 5432:127.0.0.1:5432 destination.example. com
  • Bssh -L 5432:destination.example.com:5432 127.0.0.1
  • Cssh -L 5432:127.0.0.1:5432 destination.example.com
  • Dssh -x destination.example.com:5432
  • Essh -R 5432:127.0.0.1:5432 destination.example.com

How the community answered

(26 responses)
  • A
    12% (3)
  • C
    81% (21)
  • D
    4% (1)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 202-400 Practice