nerdexam
CompTIACompTIA

XK0-005 · Question #750

XK0-005 Question #750: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #750. The question stem and answer options stay visible for context.

Troubleshooting

Question

An administrator changed the default port of an SSH server to 2222 on myhost, and clients are not able to connect. The administrator runs some commands and receives the following output: $ ssh -p 2222 myhost ssh:connect to host myhost on port 2222: No route to host $ ping myhost PING myhost (192.168.0.10) 56(84) bytes of data 64 bytes from myhost (192.168.0.10): icmp_seq=1 time=0.876 ms 64 bytes from myhost (192.168.0.10): icmp_seq=2 time=0.732 ms Which of the following commands should be run on myhost?

Options

  • Afirewall-cmd --zone=public --add-service=ssh
  • Bfirewall-cmd --zone=public --add-port=2222
  • Ciptables --zone=public --add-service=ssh
  • Diptables --zone=public --add-port=2222

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Firewall configuration#SSH#Network troubleshooting#firewall-cmd
Full XK0-005 PracticeBrowse All XK0-005 Questions