nerdexam
CompTIA

XK0-005 · Question #196

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…

The correct answer is B. ssh -X server.company.com. The 'Cannot open display' error indicates that X11 forwarding for graphical applications is not enabled, requiring a specific SSH option for remote login.

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

How the community answered

(31 responses)
  • B
    94% (29)
  • C
    6% (2)

Why each option

The 'Cannot open display' error indicates that X11 forwarding for graphical applications is not enabled, requiring a specific SSH option for remote login.

Bssh -X server.company.comCorrect

The `ssh -X` command enables X11 forwarding, which allows graphical applications running on the remote server to display their output on the local client's X server, resolving the 'Cannot open display' error.

Cxvnc server.company.com

`xvnc` is typically associated with VNC servers or clients and does not provide SSH X11 forwarding capabilities directly.

Concept tested: SSH X11 forwarding for graphical applications

Source: https://www.ssh.com/academy/ssh/x11-forwarding

Topics

#SSH#X11 forwarding#Remote access#GUI troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice