[OpenIndiana-discuss] X11 Forwarding.. Can't Open Display
Richard Carback
rick.carback at gmail.com
Mon Aug 22 01:18:59 UTC 2011
Can you post your /etc/ssh/sshd_config file?
According to documentation, the options need to be set to something like
this for it to work:
# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
This configuration works for me on multiple operating systems. I am
using oi-151.
-R
On 8/21/11 3:07 PM, Jonathan Leafty wrote:
> FYI, I decided to see if maybe Xming was just acting up, enabled OpenSSH/X11
> forwarding on my Ubuntu box and I can successfully launch programs (like
> gedit).
>
> On Sun, Aug 21, 2011 at 11:39 AM, Jonathan Leafty <
> jleafty+openindianadiscuss at gmail.com> wrote:
>
>> On Windows, I use Xming (it's worked prior to the upgrade) and Ubuntu.
>> I've also just ssh'd from the OpenIndiana host back into itself to try, I
>> remember this worked in the past to test.
>>
>> The error when launching something like gedit is always:
>> Gtk-WARNING **: cannot open display: localhost:x.0
>>
>> Where x is the Offset for the session. Echo $DISPLAY returns back the
>> correct information (as far as I know).
>>
>> Sorry for the newb questions, I'm sure this is really easy.
>>
>> Attached are the configs (still unclear what the difference is for
>> ssh_config and sshd_config..)
>>
>> Between changes I've restarted network/ssh and I've also rebooted. I got
>> tired of rebooting and decided to ask for help :)
>>
>>
>> On Sun, Aug 21, 2011 at 10:12 AM, Sriram Narayanan <sriram at belenix.org>wrote:
>>
>>> Sorry, I just realized that you're performing an SSH X11 forwarding,
>>> so xhost+ won't apply.
>>>
>>> -- Sriram
>>>
>>> On Sun, Aug 21, 2011 at 10:41 PM, Sriram Narayanan <sriram at belenix.org>
>>> wrote:
>>>> Some things to check:
>>>> 1. Did you reload sshd after you changed the config file ?
>>>> 2. Did you perform an xhost + ?
>>>>
>>>> -- Sriram
>>>>
>>>> On Sun, Aug 21, 2011 at 10:35 PM, Serge Fonville
>>>> <serge.fonville at gmail.com> wrote:
>>>>> Hi,
>>>>>
>>>>> A few questions:
>>>>> Have you looked at the settings in sshd_config.
>>>>> What error do you get
>>>>> What software did you use.
>>>>>
>>>>> Kind regards/met vriendelijke groet,
>>>>>
>>>>> Serge Fonville
>>>>>
>>>>> http://www.sergefonville.nl
>>>>>
>>>>> Convince Google!!
>>>>> They need to add GAL support on Android (star to agree)
>>>>> http://code.google.com/p/android/issues/detail?id=4602
>>>>>
>>>>>
>>>>> 2011/8/21 Jonathan Leafty <jleafty+openindianadiscuss at gmail.com>
>>>>>
>>>>>> I recently upgraded my OpenSolaris b134 install to OI 148 and then
>>> 151a
>>>>>> I can't seem to get X11 Forwarding to work, every attempt ends in:
>>>>>> cannot open display: localhost:10.0
>>>>>>
>>>>>> It looks like it wasn't enabled after the upgrade in
>>> /etc/ssh/ssh_config so
>>>>>> I enabled it there (plus ForwardX11Trusted). sshd_config has it
>>> enabled.
>>>>>> I've tried this from a Windows and Ubuntu box, same result
>>>>>>
>>>>>> ssh -v doesn't show anything wrong and I show the OI box listening on
>>> 6010
>>>>>> (or whatever display offset)
>>>>>>
>>>>>> I'm honestly not sure what to do next.
>>>>>>
>>>>>> --
>>>>>> Jonathan
>>>>>> _______________________________________________
>>>>>> OpenIndiana-discuss mailing list
>>>>>> OpenIndiana-discuss at openindiana.org
>>>>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>>>>
>>>>> _______________________________________________
>>>>> OpenIndiana-discuss mailing list
>>>>> OpenIndiana-discuss at openindiana.org
>>>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>>>
>>>>
>>>>
>>>> --
>>>> Belenix: www.belenix.org
>>>>
>>>
>>>
>>> --
>>> Belenix: www.belenix.org
>>>
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>
>>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the OpenIndiana-discuss
mailing list