what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled?

CORRECT TEXT

With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell
that is not set when X11 forwarding is not enabled? (Specify only the environment variable without
any additional commands or values.)

CORRECT TEXT

With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell
that is not set when X11 forwarding is not enabled? (Specify only the environment variable without
any additional commands or values.)

Answer: DISPLAY, $DISPLAY



Leave a Reply 1

Your email address will not be published. Required fields are marked *


ishmahl

ishmahl

Ans: DISPLAY

you should not set your DISPLAY variable, ssh will do it for you.

It will look something like:
echo $DISPLAY
localhost:12.0
X11 forwarding must be allowed by the SSH server. Check /etc/ssh/sshd_config for a line saying “X11Forwarding yes”.