OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Debian => Topic started by: dlj0 on November 18, 2007, 11:24:49 pm

Title: Problem #2 -- Remote Display With Ssh
Post by: dlj0 on November 18, 2007, 11:24:49 pm
I used to do this all the time, and with my upgrade to debian armel/sid, it no longer works.  I ssh into the Z from my (debian) desktop, and run an x program on the Z, such as xclock.  Used to be, ssh and sshd were set up so that it would display on the desktop.  It did that with titchy, angstrom, etc.  I have poured over the /etc/ssh/ssh_config and /set/ssh/sshd_config files, and as far as I can tell they are identical on the two computers, and identical to my old config files from titchy.  I can display programs on the Z that are running from the desktop just fine, but not the other way around.  It seems that the DISPLAY environment variable does not get set, even though the sshd_config file says:

X11Forwarding yes
X11DisplayOffset 10

it is listening on port 22, protocol 2.  

Anyone else?  Any clues?  It's more annoyance than anything else, but I would like to fix it.

SOLVED!  

I had not bothered to configure /etc/network/interfaces, since dhclient brought up the link without it.  All I needed to do was configure the loopback X interface (lo) and it now works.  This makes sense because ssh pipes from the loopback interface to the remote server.
Title: Problem #2 -- Remote Display With Ssh
Post by: jpmatrix on November 19, 2007, 01:28:46 am
Quote from: dlj0
I used to do this all the time, and with my upgrade to debian armel/sid, it no longer works.  I ssh into the Z from my (debian) desktop, and run an x program on the Z, such as xclock.  Used to be, ssh and sshd were set up so that it would display on the desktop.  It did that with titchy, angstrom, etc.  I have poured over the /etc/ssh/ssh_config and /set/ssh/sshd_config files, and as far as I can tell they are identical on the two computers, and identical to my old config files from titchy.  I can display programs on the Z that are running from the desktop just fine, but not the other way around.  It seems that the DISPLAY environment variable does not get set, even though the sshd_config file says:

X11Forwarding yes
X11DisplayOffset 10

it is listening on port 22, protocol 2.  

Anyone else?  Any clues?  It's more annoyance than anything else, but I would like to fix it.

are you using only root or your normal user ?
Title: Problem #2 -- Remote Display With Ssh
Post by: dlj0 on November 19, 2007, 01:29:27 pm
Quote from: jpmatrix
Quote from: dlj0
I used to do this all the time, and with my upgrade to debian armel/sid, it no longer works.  I ssh into the Z from my (debian) desktop, and run an x program on the Z, such as xclock.  Used to be, ssh and sshd were set up so that it would display on the desktop.  It did that with titchy, angstrom, etc.  I have poured over the /etc/ssh/ssh_config and /set/ssh/sshd_config files, and as far as I can tell they are identical on the two computers, and identical to my old config files from titchy.  I can display programs on the Z that are running from the desktop just fine, but not the other way around.  It seems that the DISPLAY environment variable does not get set, even though the sshd_config file says:

X11Forwarding yes
X11DisplayOffset 10

it is listening on port 22, protocol 2.  

Anyone else?  Any clues?  It's more annoyance than anything else, but I would like to fix it.

are you using only root or your normal user ?

Normal user, on both systems.
Title: Problem #2 -- Remote Display With Ssh
Post by: speculatrix on November 19, 2007, 04:55:11 pm
ensure when you login to your Z that you're not overriding the env variable DISPLAY

not all ssh_config files (on the client PC) have X forwarding enabled by default, some have been known to have changed, as it's a security risk, so ensure you try "ssh -X myzaurus"

check that the zaurus's sshd_config has X forwarding enabled too.
Title: Problem #2 -- Remote Display With Ssh
Post by: dlj0 on November 20, 2007, 12:04:35 am
Quote from: speculatrix
ensure when you login to your Z that you're not overriding the env variable DISPLAY

not all ssh_config files (on the client PC) have X forwarding enabled by default, some have been known to have changed, as it's a security risk, so ensure you try "ssh -X myzaurus"

check that the zaurus's sshd_config has X forwarding enabled too.

It does seem to be overriding the DISPLAY variable, since when I run env in the ssh shell, nothing about DISPLAY shows up.  This is with or without the -X option set.  And if I do

export DISPLAY=localhost:10.0  

in the shell, it still doesn't work.  It doesn't complain about not being able to open the display, but nothing shows up, either.  Reversing the process does work, though.  

Yes, the Z's sshd_config file has:

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
Title: Problem #2 -- Remote Display With Ssh
Post by: Meanie on November 20, 2007, 01:48:08 am
xhosts +?