[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ssh & DISPLAY



I can't seem to get X Forwarding to work right over my ssh tunnels.

On the the server:

dberg@dale:~$ grep X11 /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10

On the client:

dberg@chip:~$ grep ^[^#\n] /etc/ssh/ssh_config
Host *
  ForwardX11 yes
  ForwardX11Trusted yes

Connecting to and trying to run an xterm from server:
dberg@chip:~$ ssh -X berg

dberg@dale:~$ echo $DISPLAY

dberg@dale:~$ xterm
xterm Xt error: Can't open display:
xterm:  DISPLAY is not set
dberg@dale:~$

Not only do I have to set the DISPLAY environment variable on the
server but I also have to run the appropriate xhost command as well. 
I thought that enabling X11 Forwarding on the server and using -X was
all that is necessary, and that seems to be what all the howtos I can
find say too.  What am I missing here?

--Dave

Reply to: