nerdexam
CompTIA

XK0-005 · Question #658

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…

The correct answer is A. Disconnect from the SSH session and reconnect using the ssh -x command. 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…

Troubleshooting

Question

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?

Options

  • ADisconnect from the SSH session and reconnect using the ssh -x command.
  • BAdd Options X11 to the /home/admin/.ssh/authorized_keys file.
  • COpen port 6000 on the workstation and restart the firewalld service.
  • DEnable X11 forwarding in /etc/ssh/ssh_config and restart the server.

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    11% (2)
  • C
    5% (1)
  • D
    5% (1)

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

Topics

#SSH#X11 Forwarding#Remote Display#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice