An administrator is tasked with running a remote session for a graphically intensive application on a Linux server, where the display output is needed on a local machine. Given security considerations and the necessity for GUI rendering, which SSH command should the administrator use to initiate this remote session securely?
The correct answer is ssh -X user@hostname because the -X option enables X11 forwarding with the default security restrictions of the X11 SECURITY extension, allowing the graphical output of the remote application to be displayed on the local machine while limiting risk. The -Y option provides trusted X11 forwarding, which disables those restrictions and is therefore less secure. The -x option disables X11 forwarding entirely, so no GUI would be forwarded. The -C option only compresses traffic; although it can be combined with -X, it does not by itself enable GUI forwarding.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is X11 forwarding?
Open an interactive chat with Bash
Why is `ssh -Y` considered less secure than `ssh -X`?