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 as it enables X11 forwarding securely, allowing the graphical output of the remote application to be displayed on the local machine. The -Y option is less secure than -X and should be used with caution as it provides trusted X11 forwarding, which can expose the local system to possible X11 security risks. The -x option disables X11 forwarding and is incorrect. Lastly, the -C option compresses data during the session, which might be useful in low-bandwidth scenarios but does not address the requirement for X11 forwarding and GUI display. Therefore, while -C combined with -X could be used together, -C alone is not correct for the scenario described.
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`?