X11 forwarding problem over ssh. Where DISPLAY is set?
I have four Debian penguins, (3 squeeze, 1 etch).
One of them does not forward X11 to other over ssh. (saying that DISPLAY is not set) This one can be forwarded by other.
ssh_config and sshd_config say that X11forwarding is yes.
ssh -vvv firstname.lastname@example.org indicates that DISPLAY is not set.
At this moment, I am trying to figure out which program (daemon, script or whatever) sets DISPLAY.
So far, I have reinstalled openssh-server, ssh using aptitude.
Does anybody know how to proceed?
Any suggestions will be appreciated.
Append the before your command:
If it does not work, then it is because the feature is disabled, like in Ubuntu. It is not hard to enable again, but I don't remember how I did it.
kaz2100, it's sshd (server-side, ie the machine you connect into) that actually sets the DISPLAY variable. It allocates a fake X server on the server, and forwards connections through ssh (client-side, the machine you connect from). ssh then looks up its own DISPLAY variable to work out where to send connections to (so ssh must be run from a GUI terminal, or otherwise with DISPLAY set).
There's also some magic with xauth for authentication.
Thanks, Elv13 and rjlee.
Setting DISPLAY suggested by Elv13 did not work. I tried many different possibilities (:0, localhost:10.0 ....)
Then as suggested by rjlee, I just followed how sshd works. I was not quite sure if it was behaving right. For some reason, I tried to ssh to same machine (on non-behaving penguin), which did not work. (again, ssh -vvv was not helpful)
Just hoping something is wrong with network connection, I went to weed out everything out of dmesg and /var/log/whatever/files. Then I found that udev renamed wlan0 to ath0, even no madwifi was used any more. (My memory says that the node ath0 is made by wlanconfig, which is included in madwifi.) Next thing I did was to remove /etc/udev/rules.d/70-persistent-net.rules (content follows.)
For information, working udev rule looks like:
|All times are GMT -5. The time now is 01:34 AM.|