ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 243 - XK0-005 discussion

Report
Export

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

[user@workstation ~]$ ssh admin@srv1

Last login: Tue Mar 29 18:03:34 2022

[admin@srvl ~] $ /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.
Answers
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.
Answers
B.
Add Options X11 to the /home/admin/.ssh/authorized_keys file.
C.
Open port 6000 on the workstation and restart the firewalld service.
Answers
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.
Answers
D.
Enable X11 forwarding in /etc/ssh/ssh_config and restart the server.
Suggested answer: A

Explanation:

The error indicates that the application requires an X11 display, but the SSH session does not forward the X11 connection. To enable X11 forwarding, the administrator needs to use the ssh -X option, which requests X11 forwarding with authentication spoofing. This will set the DISPLAY environment variable on the remote host and allow the application to open a window on the local display.

Reference

CompTIA Linux+ (XK0-005) Certification Study Guide, page 314

Open a window on a remote X display (why ''Cannot open display'')?, answer by Gilles 'SO- stop being evil'

asked 02/10/2024
Tomislav Bodrozic
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first