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.
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 -his incorrect becausexrdpis a server-side component for RDP on Linux, and the-hflag typically displays help, not initiates an X11-forwarded SSH session. - C.
xvncis not a standard client command for establishing a VNC connection; VNC clients typically usevncvieweror similar utilities, and this syntax is incorrect for a remote display connection.
Concept tested. SSH X11 forwarding for GUI
Topics
Community Discussion
No community discussion yet for this question.