nerdexam
CompTIACompTIA

XK0-005 · Question #1191

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

The correct answer is B: ssh -X server.company.com. The 'Cannot open display' error occurs when X11 forwarding is not enabled for graphical applications over an SSH connection. To resolve this, the SSH client must explicitly request X11 forwarding.

Troubleshooting

Question

An administrator receives the following message on a remote server: Cannot open display. Which of the following should the administrator have used to log in to the server? xrdp -h server.company.com A.

Options

  • Bssh -X server.company.com
  • Cxvnc server.company.com

Explanation

The 'Cannot open display' error occurs when X11 forwarding is not enabled for graphical applications over an SSH connection. To resolve this, the SSH client must explicitly request X11 forwarding.

Common mistakes.

  • A. xrdp -h is incorrect because xrdp is a server-side component for RDP on Linux, and the -h flag typically displays help, not initiates an X11-forwarded SSH session.
  • C. xvnc is not a standard client command for establishing a VNC connection; VNC clients typically use vncviewer or similar utilities, and this syntax is incorrect for a remote display connection.

Concept tested. SSH X11 forwarding for GUI

Reference. https://man7.org/linux/man-pages/man1/ssh.1.html

Topics

#SSH#X11 Forwarding#Remote Access#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions