exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 283 discussion

Actual exam question from CompTIA's XK0-005
Question #: 283
Topic #: 1
[All XK0-005 Questions]

After connecting to a remote host via SSH, an administrator attempts to run an application but receives the following error:

[user@worksration ~]$ ssh admin@srv1
Last login: Tue Mar 29 18:03:34 2022
[admin@srv1 ~] $ /usr/local/bin/config_manager
Error: cannot open display:
[admin@srv1 ~] $

Which of the following should the administrator do to resolve this error?

  • A. Disconnect from the SSH session and reconnect using the ssh -x command.
  • B. Add Options X11 to the /home/admin/ .ssh/authorized_keys file.
  • C. Open port 6000 on the workstation and restart the firewalld service.
  • D. Enable X11 forwarding in /etc/ssh/ssh_config and restart the server.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kenathojan
1 month, 2 weeks ago
Selected Answer: D
Explanation: The error Error: cannot open display: occurs because the X11 display (used for GUI applications) is not forwarded to your local machine. This is common when trying to run GUI-based applications over SSH.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago