Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2008, 01:26 PM
Calab
 
Posts: n/a
Default Cannot connect to Cygwin or XMing from Debian SSH session

I have connected to my Debian PC with SSH using PuTTY under Windows XP. X11
forwarding is enabled in PuTTY. If I try to start an xwindow application,
the connection is rejected. I've not had any success using Cygwin or XMing.
Both reject the connection the same way, so I assume that the Debian PC is
not configured correctly.

Every time I try to connect to the XServer on my Windows PC, I end up with
the following entry in the XServer log file:

AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program Files\Xming\Xming.exe:
client 4 rejected from IP 10.0.11.16


This is what I see on my Debian SSH session:

steve:~$xeyes
Xlib: connection to "stevespc:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: stevespc:0.0


Can anyone point me in the right direction to get my remote Debian PC to use
my Windows XServer?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-13-2008, 01:26 PM
Joe Beasley
 
Posts: n/a
Default Re: Cannot connect to Cygwin or XMing from Debian SSH session

Start cygwin. A command prompt opens. Type 'startx'. (without the '')
Another command prompt opens. This is the X based one. The ssh to
your debian box. Type 'xeyes'. Should open on your windows machine.


Calab wrote:
> I have connected to my Debian PC with SSH using PuTTY under Windows XP. X11
> forwarding is enabled in PuTTY. If I try to start an xwindow application,
> the connection is rejected. I've not had any success using Cygwin or XMing.
> Both reject the connection the same way, so I assume that the Debian PC is
> not configured correctly.
>
> Every time I try to connect to the XServer on my Windows PC, I end up with
> the following entry in the XServer log file:
>
> AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program Files\Xming\Xming.exe:
> client 4 rejected from IP 10.0.11.16
>
>
> This is what I see on my Debian SSH session:
>
> steve:~$xeyes
> Xlib: connection to "stevespc:0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: stevespc:0.0
>
>
> Can anyone point me in the right direction to get my remote Debian PC to use
> my Windows XServer?
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 01:26 PM
Calab
 
Posts: n/a
Default Re: Cannot connect to Cygwin or XMing from Debian SSH session


"Joe Beasley" <jbeasley@somwhere.com> wrote in message
newsBvsj.10893$J41.7998@newssvr14.news.prodigy.n et...
> Start cygwin. A command prompt opens. Type 'startx'. (without the '')
> Another command prompt opens. This is the X based one. The ssh to your
> debian box.


I get this far without any problem...

> Type 'xeyes'. Should open on your windows machine.


....at this point $DISPLAY is empty.

steve:~$xeyes
Error: Can't open display:

.... I've tried a couple things here with no luck:

steve:~$export DISPLAY=:0.0
steve:~$xeyes

.... It just sits here doing nothing until I hit Ctl-Z.

I also tried the following, which generates "AUDIT: Tue Feb 12 23:15:30
2008: 3476 X: client 6 rejected from IP 10.0.11.16" in the Cygwin "~"
window.

steve:~$export DISPLAY=stevespc:0.0
steve:~$xeyes
Xlib: connection to "stevespc:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: stevespc:0.0
steve:~$


> Calab wrote:
>> I have connected to my Debian PC with SSH using PuTTY under Windows XP.
>> X11 forwarding is enabled in PuTTY. If I try to start an xwindow
>> application, the connection is rejected. I've not had any success using
>> Cygwin or XMing. Both reject the connection the same way, so I assume
>> that the Debian PC is not configured correctly.
>>
>> Every time I try to connect to the XServer on my Windows PC, I end up
>> with the following entry in the XServer log file:
>>
>> AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program
>> Files\Xming\Xming.exe: client 4 rejected from IP 10.0.11.16
>>
>>
>> This is what I see on my Debian SSH session:
>>
>> steve:~$xeyes
>> Xlib: connection to "stevespc:0.0" refused by server
>> Xlib: No protocol specified
>>
>> Error: Can't open display: stevespc:0.0
>>
>>
>> Can anyone point me in the right direction to get my remote Debian PC to
>> use my Windows XServer?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-13-2008, 01:26 PM
Anton Ertl
 
Posts: n/a
Default Re: Cannot connect to Cygwin or XMing from Debian SSH session

"Calab" <myspam@csd.ca> writes:
>
>"Joe Beasley" <jbeasley@somwhere.com> wrote in message
>newsBvsj.10893$J41.7998@newssvr14.news.prodigy. net...
>> Start cygwin. A command prompt opens. Type 'startx'. (without the '')
>> Another command prompt opens. This is the X based one. The ssh to your
>> debian box.

>
>I get this far without any problem...
>
>> Type 'xeyes'. Should open on your windows machine.

>
>...at this point $DISPLAY is empty.
>
> steve:~$xeyes
> Error: Can't open display:


Looks to me like X forwarding is not working. Note that X forwarding
has to be enabled both on the client and on the server.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-13-2008, 01:26 PM
Lew Pitcher
 
Posts: n/a
Default Re: Cannot connect to Cygwin or XMing from Debian SSH session

On Feb 12, 11:56 pm, "Calab" <mys...@csd.ca> wrote:
> I have connected to my Debian PC with SSH using PuTTY under Windows XP. X11
> forwarding is enabled in PuTTY. If I try to start an xwindow application,
> the connection is rejected. I've not had any success using Cygwin or XMing.
> Both reject the connection the same way, so I assume that the Debian PC is
> not configured correctly.
>
> Every time I try to connect to the XServer on my Windows PC, I end up with
> the following entry in the XServer log file:
>
> AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program Files\Xming\Xming.exe:
> client 4 rejected from IP 10.0.11.16
>
> This is what I see on my Debian SSH session:
>
> steve:~$xeyes
> Xlib: connection to "stevespc:0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: stevespc:0.0
>
> Can anyone point me in the right direction to get my remote Debian PC to use
> my Windows XServer?


Are you using the -X option on your ssh command? ("ssh -X target-
machine-address")
Do you have your SSH server set up to permit X forwarding?

Your sshd_config file should have something like:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

Your ssh command should be
ssh -X target-system-address

You should already have your X server running (I suggest XMing as it
is "lighter" than Cygwin)

You might want to read a Linux Gazette article I wrote that outlines
the things to do: http://linuxgazette.net/129/pitcher.html

Hope this helps.
--
Lew


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-14-2008, 05:49 AM
Calab
 
Posts: n/a
Default Re: Cannot connect to Cygwin or XMing from Debian SSH session

>> AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program
>> Files\Xming\Xming.exe:
>> client 4 rejected from IP 10.0.11.16
>>
>> This is what I see on my Debian SSH session:
>>
>> steve:~$xeyes
>> Xlib: connection to "stevespc:0.0" refused by server
>> Xlib: No protocol specified
>>
>> Error: Can't open display: stevespc:0.0
>>
>> Can anyone point me in the right direction to get my remote Debian PC to
>> use
>> my Windows XServer?

>
> Are you using the -X option on your ssh command? ("ssh -X target-
> machine-address")


Yes.

> Do you have your SSH server set up to permit X forwarding?
>
> Your sshd_config file should have something like:
> X11Forwarding yes
> X11DisplayOffset 10
> X11UseLocalhost yes


Yes.

> You should already have your X server running (I suggest XMing as it
> is "lighter" than Cygwin)


Thanks!

I was able to get Xming running. I had to add the debian PC to the XO.hosts
file in the Xming directory.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62