![]() |
Dropbear X Forwarding
I installed dropbear on my OS2006 IT.
I can't seem to get X forwarding working. Dropbear seems to be used by many folks on various platforms. There are so many (unchallenged) references to dropbear supporting X forwarding, that I think I must be doing something wrong. I am using PuTTY on an XP Pro laptop to ssh into my 770. "Plain vanilla" ssh access works great. I installed the Xming X server on the laptop. Seemed to install just fine. I want to use the laptop PuTTY and Xserver to interact with some GUI apps on the Nokia 770. I configured PuTTY for X forwarding (checked the box and entered the display value [localhost:0.0]), and then logged into the Nokia (as root). But, I could not get any X apps to display on the laptop. On the 770, it looks like X forwarding is enabled. By that I mean that the ssh daemon (dropbear) has properly redefined the DISPLAY environment variable (on the 770) to "localhost:10.0", and, as verified by netstat, has properly set up an X forwarding listener on port 6010. So, it looks like dropbear is doing what it should for X forwarding. Nevertheless, it doesn't work. When I try to invoke an X app remotely (from my laptop) I get an error message that the server could not connect to the display. I think the most likely thing is that I am not doing something correctly. Or could it be that dropbear, in spite of the many websites that assert that dropbear does X forwarding, is defective? Or is it just the Maemo dropbear that has problems? Or is it something else that I am not considering? Thank you for any comments. DG [Edit] P.S. I also tried editing /etc/default/dropbear to include the additional line "X11Forwarding yes", and also to include the string "-X" in the "DROPBEAR_EXTRA_ARGS" line. |
Quote:
Quote:
Also I think xserver on n770 is not built (or started?) with TCP/IP support so you can't display anything remote on n770 screen. I'm not 100% sure about this, please correct me if I am wrong. |
Just tried it with dropbear X forwarding, doesn't work for me too with openssh on PC.
$ ssh -v -X root@n770-bt .. .. .. debug1: Entering interactive session. debug1: Requesting X11 forwarding with authentication spoofing. sh: /usr/X11R6/bin/xauth: not found BusyBox v1.01 (Debian 3:1.01-4.osso10-ipv6.etc1) Built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia770-26:~# echo $DISPLAY localhost:10.0 Nokia770-26:~# leafpad debug1: client_input_channel_open: ctype x11 rchan 1 win 8000 max 8000 debug1: client_request_x11: request from 127.0.0.1 8965 debug1: channel 1: new [x11] debug1: confirm x11 X11 connection rejected because of wrong authentication. debug1: channel 1: free: x11, nchannels 2 The application 'leafpad' lost its connection to the display localhost:10.0; most likely the X server was shut down or you killed/destroyed the application. Nokia770-26:~# Looks like I would need 'xauth' on n770 for this to work. |
Quote:
Quote:
Quote:
DG |
If you can't get to work X-forwarding you can install the available VNC server (look in application catalog, there is a repository for it) on the 770 and access it that way. Worked well the last time I tried.
Bye, tira. |
tirabosco,
Thank you for the suggestion. I will try that eventually. But, I'm still interested in understanding what is happening (or not :-) ) with N770 dropbear. fanoush, I was looking over the thread again, and I think I see why you thought I was trying to go "the other way". Probably because of my edits to /etc/default/dropbear. I was just trying stuff, even if it didn't make any sense. But, my intent is to understand how to get N770 to do X forwarding in response to a request from ssh on a remote machine which is also running an X Server. Opening port 6000 on my XP Pro laptop and just setting DISPLAY env var on N770 to <IP-address-of-remote-machine>:0.0 (not attempting to use SSH X Forwarding, but just unencrypted, plain vanilla setting of DISPLAY) still didn't work. I see from your remarks that you were also unable to get X Forwarding to work, and that you tried ssh directly (as opposed to PuTTY). If I understand you correctly, you identify the missing 'xauth' as a possible cause of the problem. DG |
Quote:
As for xhost, it is executable command in cygwin and linux, in Xming there is some checkbox 'No acces control' which is same as 'xhost +'. But with xhost you can specify list of servers alowed. |
Quote:
On other platforms, when I need to test whether I have good X functionality, I always just try to execute "xclock" as a test. But, no xclock on the N770. In fact (as you indicate) there aren't really any "normal" X apps that I can see. I wonder if the folks that use openssh (instead of dropbear) are able to do X forwarding. Quote:
I appreciate the comments. Very instructive. Regards, DG |
Re: Dropbear X Forwarding
I too am interested in getting X forwarding working.
I just got this N800 (Yesterday) but have been using Linux for years. I know there is a "tcp forward" option on desktop linux GDM which will prevent X forwarding. I wonder if there isn't something like this on the Nokia that is preventing us from us X the way it was intended. |
Re: Dropbear X Forwarding
I too haven't managed yet, because of the X security on the IT.
What I managed to do is launch an app and display it on my PC but _NOT_ tunneled (so all passing unencrypted..) Using kdm and debian First the local Xserver has to listen for incoming connections. By default in Debian this is hardcoded so that it does not listen, for security reasons. vi /etc/kde3/kdm/kdmrc Change ServerArgsLocal=-nolisten tcp to ServerArgsLocal= Restart X windows (ctrlAltBackSpace) then login and allow people to connect to your DISPLAY: xhost + then log in to your IT: ssh me@192.168.1.5 set DISPLAY variable export DISPLAY=linux_ip:0.0 and start an application that is linked to xlib (which uses the DISPLAY variable) xchat Pops! Now the real X11 forwarding would be xchat would connect to localhost:10.0 (IT:10.0) tunneled to PC:0.0 But no xauth so connection to localhost:10.0 doesn't work (due to missing xauth yes) Maybe as user "user" it does work. I'll try again later and post here |
All times are GMT. The time now is 10:48. |
vBulletin® Version 3.8.8