Categories
Unix Notes Utilities Notes

X-Forwarding behind Router and SSH-server

The macosxhints Forums – X-Forwarding behind Router and SSH-server

Make sure the machine to which you are ssh’ing has

X11Forwarding yes

in its sshd_config file. If not, add it, then HUP sshd on that machine (kill -HUP ).

sao02-23-2003, 02:27 PMprahn wrote:
Do I have to set DISPLAY variables somewhere?
No, if you use ssh -X, X forwarding and your DISPLAY environment variable on the remote host will automatically be set.

You are using “ssh -X user@remotehost” from the initial xterm, right?

If X11 is running on your Mac then from Terminal you can “Run Command”

ssh -X user@host /usr/X11R6/bin/xterm -ls