-X tells SSH to forward the X11 connection, which basically says that any graphical stuff gets "forwarded" from the remote server, over the encrypted SSH link, to your local machine.
Hence, you can see it.
ssh -X probably plays around with the $DISPLAY variable and alike to make this happen.
If you don't have an X server running (like on serverB ie text mode), the -X will have no effect, since there is no X server to actually use the forwarded X connection.
Sounds logical, no?
Why ssh then doesn't change/set $DISPLAY in that case, is probably just a logical consequence of this.
However, I'm no ssh/X expert, so I can be wrong on this one.
|