X11 not forwarding in SSH session

14 views
Skip to first unread message

reedog117

unread,
Oct 9, 2009, 5:14:36 PM10/9/09
to iSSH/iX11
I'm currently running 4.0.9 on an iPod Touch. I am SSHing over to a
cloud server I have running on Rackspace Cloud. I am trying to open
up an xterm, but it says that it cannot open my display :0.0

I checked what DISPLAY is set to and it's set to :0.0

I doublechecked to make sure it's not just my server by logging in
with PuTTY on my other box with X forwarding enabled and it works
fine.

I also checked /etc/ssh/sshd_config (I'm running Ubuntu server 8.04
LTS) and it does have 'X11Forwarding yes' in there.

Any other ideas to get this to work? I couldn't find any X11-specific
SSH settings for the connection in the iSSH interface.

Dean

unread,
Oct 9, 2009, 5:19:59 PM10/9/09
to iSSH/iX11
Are you sure you aren't setting the DISPLAY variable on connect
somehow? For tunneled SSH sessions as setup by iSSH and other SSH
clients, typically the DISPLAY variable is a higher number like :10.0
or :11.0. You could try setting it manually to localhost:10.0 or
something to that affect, but iSSH should be doing the X11 tunneling
and setting up the variable correctly. The only time I haven't see it
do so is if the tunnel wasn't permitted on the server side for
whatever reason (including simply allowing the X11 forwarding, as you
have already verified it's not doing.)

Dean

RogerWilco

unread,
Nov 18, 2009, 9:53:05 PM11/18/09
to iSSH/iX11
I have successfully logged onto Ubuntu 8.04 LTS with 4.0.9.

Indeed your DISPLAY should be something like localhost:10.0 or :11.0.
:0.0 is the first display, usually the actual hardware display port of
the box (with or without a monitor)
IIRC, by default sshd starts counting at 10.0 when trying to create
"virtual screens", so something in that range is probably what should
be set.

Most likely there is some script or setting that overrides the
$DISPLAY setting that ssh does.
Reply all
Reply to author
Forward
0 new messages