LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-27-2010, 07:30 AM   #1
ktfreak
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Rep: Reputation: 0
Xming / Plink export to target display not working


Hi guys,

I don't know if my question is a typcial Linux related one but I'm just asking anyway. I'm trying to
connect to a Redhat Linux machine (let's call it the First One) from my Windows machine using xming
X-server emulator and plink.exe. This doesn't work by any reason. I always get an error message
telling that the target display is not available. If I connect to a different Redhat-Linux machine
(let's call it the Second One) using plink.exe the connection can be established successfully. And
now, if the connection to the second linux machine is established for only one time, I can connect
to the first linux machine using plink.exe and the X-Window export is also successfully then.

In addition I need to tell you that on the First One xterm is running and on the Second One both
xterm and gnome are running. On the windows machine I've got the xming server running with the
parameters xming.exe -clipboard -mutliwindow.

I don't understand why the x-window export will not work if I try to connect to the First One
directly but if a plink-connection to the Second One could be established for only one time, the
connection to the First One works properly.

Can anyone help me?

Thanks a lot.

PS:
sorry for my bad english
 
Old 11-27-2010, 09:10 AM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
Hi
check that link: http://www.straightrunning.com/Xming...e.php#head-111
I think your missing a "-X" at your plink command line or you have to allow that nonfunctional IP at xming.
 
1 members found this post helpful.
Old 11-29-2010, 08:32 AM   #3
ktfreak
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Hi,

I execute the following commands on the windows machine:

1. run xming server
xming -clipboard -multiwindow

2. create ssh connection to the Second One
plink -v -X <username>@<SecondOne> /usr/bin/xterm -ls
Then an xterm-window appears. I just close this by typing "exit"

3. create ssh connection to the First One
plink -v -X <username>@<FirstOne> /usr/bin/xterm -ls -display <windowsmachine:0.0>
Now the xterm window from the target machine appears, the $DISPLAY variable is set to target <windowsmachine:0.0> and everything's fine now.

If I now close xming and rerun xming again and then run the third command directly I'll get this error message:

<=======================================
Looking up host "*****"
Connecting to ***.***.***.*** port 22
Server version: SSH-2.0-OpenSSH_4.3
We claim version: SSH-2.0-PuTTY_Release_from_0.60_2007_05_02
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 2048 ***
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "****".
Sent password
Access granted
Opened channel for session
Requesting X11 forwarding
X11 forwarding enabled
Sent 1 environment variables
All environment variables refused
Server refused to set environment variables
Started a shell/command
Xlib: connection to "******:0.0" refused by server
Xlib: Server sent command exit status 1
Disconnected: All channels closed
No protocol specified
=======================================>

I need more help.
 
Old 11-29-2010, 04:22 PM   #4
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
so you get:
Quote:
Code:
Using username "****".
Sent password
Access granted
Opened channel for session
Requesting X11 forwarding
X11 forwarding enabled
Sent 1 environment variables
All environment variables refused
Server refused to set environment variables
Started a shell/command
Xlib: connection to "******:0.0" refused by server
Xlib: Server sent command exit status 1
Disconnected: All channels closed
No protocol specified
It seems that Xming doesn't allow the connection.
Try the option "-ac" like:
Code:
xming -ac -clipboard -multiwindow
when you call Xming.
But be aware that this switches off the IP access control of Xming, better you should use xhost as to be seen here:
http://www.straightrunning.com/tools/xhost.html
 
1 members found this post helpful.
Old 11-30-2010, 01:47 AM   #5
ktfreak
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Ah thanks, that worked for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xming, startx as root: Server already active for display 0 rptk Linux - Newbie 1 09-12-2010 11:20 AM
Xming/ DISPLAY not working! ifeatu Linux - Newbie 3 09-04-2009 12:16 AM
XMing/PLink won't cooperate... richardh1970 Linux - Software 1 10-21-2008 08:09 AM
xming, plink, and startkde not working kavius General 5 07-18-2008 10:48 AM
LXer: Blue GNU Wrong About Xming - Xming No Longer GPL LXer Syndicated Linux News 0 11-19-2007 05:41 AM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration