1

In both the cases, I am able to connect to X11.

  1. What's the difference?
  2. And is xhost +hostname permanent, even after the base terminal is closed?
3

Using ssh -X, you have a tunnel to the X server which is reasonably secure. Using xhost +, you do not have that secure connection.

The xhost + command changes the X server properties so that other connections will succeed where they did not before (including after you disconnect from the hosts which you enabled).

Further reading:

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.