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?
GP92
  • 775
  • 6
  • 15
  • 31

1 Answers1

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:

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268
  • Hi..thanks...now got it. And can you answer this too? http://unix.stackexchange.com/questions/265697/whats-the-difference-between-su-and-sux – GP92 Feb 25 '16 at 11:28