On Fri, Feb 10, 2012 at 1:27 PM, Mattia <[email protected]> wrote:

>  On 02/10/2012 12:15 PM, Shai Ayal wrote:
>
>
>
> On Fri, Feb 10, 2012 at 1:13 PM, Mattia <[email protected]> wrote:
>
>>   On 02/10/2012 12:06 PM, Shai Ayal wrote:
>>
>>
>>
>> On Fri, Feb 10, 2012 at 11:59 AM, Mattia <[email protected]> wrote:
>>
>>>   On 02/10/2012 10:47 AM, Shai Ayal wrote:
>>>
>>>
>>>
>>> On Fri, Feb 10, 2012 at 11:40 AM, Mattia <[email protected]> wrote:
>>>
>>>> On 02/10/2012 09:51 AM, Atsuhiko Yamanaka wrote:
>>>> > Hi,
>>>> >
>>>> >     +-From: Mattia<[email protected]>  ----
>>>> >     |_Date: Thu, 09 Feb 2012 18:52:11 +0100 __
>>>> >     |
>>>> >     |Hello list!
>>>> >     |I'm facing some troubles trying to execute any kind of graphical
>>>> >     |program using JSch (versions 0.1.45 and 0.1.46).
>>>> >
>>>> > Confirm that the local X sever is listening to TCP port 6000,
>>>> >    $ netstat -na | grep 6000
>>>> > , and then allow connections to it without X authenticity checking,
>>>> >    $ xhost +127.0.0.1
>>>> >
>>>> >
>>>> > Sincerely,
>>>> > --
>>>> > Atsuhiko Yamanaka
>>>> > JCraft,Inc.
>>>> > 1-14-20 HONCHO AOBA-KU,
>>>> > SENDAI, MIYAGI 980-0014 Japan.
>>>> > Tel +81-22-723-2150
>>>> > Skype callto://jcraft/
>>>> > Twitter: http://twitter.com/ymnk
>>>> > Facebook: http://facebook.com/aymnk
>>>> >
>>>>  Hello.
>>>>
>>>> In the (physical) Fedora machine the X server is not listening to the
>>>> TCP port - I'm guessing it's using the socket in /tmp. In the virtual
>>>> machine running Ubuntu the X server is listening to the TCP port 6010.
>>>>
>>>> Using xhost doesn't seem to be of any help.
>>>>
>>>> Regards.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Virtualization & Cloud Management Using Capacity Planning
>>>> Cloud computing makes use of virtualization - but cloud computing
>>>> also focuses on allowing computing to be delivered as a service.
>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>> _______________________________________________
>>>> JSch-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/jsch-users
>>>>
>>>  Does it work for you without ssh?
>>> phys> xhost +virt
>>> phys> rsh virt
>>> virt> xterm -d phys:0
>>>
>>>  Shai
>>>
>>>
>>>  --
>>> SPT <https://market.android.com/details?id=org.ayal.SPT> - persistent
>>> SSH tunnels for android.
>>>
>>>    Mmh I am afraid I can't do this test with rsh.
>>>
>>
>> What do you mean "You can't do that" -- don't you have rsh or you try and
>> it doesn't succeed?
>> if you don't have rsh, try ssh without x-forwarding:
>>  phys> xhost +virt
>> phys>  ssh -x  virt
>> virt> xterm -d phys:0
>>
>>  Note the "-x" argument to ssh which will disable ssh's built-in
>> x-forwarding
>>
>>
>>  --
>> SPT <https://market.android.com/details?id=org.ayal.SPT> - persistent
>> SSH tunnels for android.
>>
>>    Rsh is not available for use.
>>
>> I tried with ssh -x and I get this
>>
>>
>> xterm Xt error: Can't open display:
>>  xterm:  DISPLAY is not set
>>
>> Thanks for your help!
>>
>
> How about:
> phys> xhost +virt
> phys>  ssh -x  virt
> virt> DISPLAY=phys:0.0 xterm
>
>
>  --
> SPT <https://market.android.com/details?id=org.ayal.SPT> - persistent SSH
> tunnels for android.
>
>   Nope. Tried various combinations of :0 and :0.0, yet I still have the
> "can't open display" error. I ran some tests like these too,
> admittedly with X forwarding explicitly enabled, and didn't manage to
> find anything (nor to have them to work as expected).
>
Does ssh x-forwarding work for you:
phys>  ssh -X  virt
virt> xterm

If not then your phys system is not setup correctly. What is the value of
DISPLAY on phys?
phys> echo $DISPLAY
?


-- 
SPT <https://market.android.com/details?id=org.ayal.SPT> - persistent SSH
tunnels for android.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to