I must be missing something very simple here:
I am connecting to a RedHat 7 Enterprise EC2 instance from my Cygwin/X Windows desktop. I use ssh -XYg -i kekfile.pem [email protected]
to connect. I then export DISPLAY=:10.0
.
This works fine as long as on the client side I do: xhost +
But that seems a little risky as it will let anything on my network connect to my local X11 server. How can you use xhost
or xauth
(or something else?) to only allow that one ssh session to use my local X11 server?
ssh
onto the EC2 host and run an X program I get:xterm: Xt error: Can't open display: xterm: DISPLAY is not set
– JoshK