LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2006, 10:05 PM   #1
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
can't display xwindow on remote machine using Debian 3.1


I am runnig Debian (Sarge) 3.1 on a LAN.
I want to open xwindow on a remote machine.

Two machines: Machine A and Machine B

I am logged in A.
1. I gave command: xhost + B
2. ssh to machine B.

3. Now while in machine B wrote command:
export DISPLAY=A:0.0
4. xterm

I see error message: xterm Xt error: Can't open display

I also made following change in /etc/ssh/sshd_config:
X11Forwarding yes
(Above change was made made for both the machines A and B). I also rebooted A & B after this change, but to no avail. (I also tried the same thing while on machine B.)

Your help is greatly appreciated.

Last edited by linian; 07-19-2006 at 09:24 AM.
 
Old 07-19-2006, 03:22 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Did you try to open the ssh connection using
Code:
ssh -X
(enable X11) or
Code:
ssh -Y
(enable trusted X11 - remember to make B "trusted")

instead of plain "ssh"?
 
Old 07-19-2006, 09:32 AM   #3
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
After your advice I tried it as:

xhost + remotehost
ssh -X machineB -l username
....export DISPLAY....

also as:

xhost + remotehost
ssh -Y machineB -l username
....export DISPLAY....

But both ways, I get the following error
xterm Xt error: Can't open display: machineA:0.0

Last edited by linian; 07-20-2006 at 09:52 AM.
 
Old 07-20-2006, 09:40 AM   #4
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Hello b0uncer,
I GOT THAT. NOW IT is working fine. Thanks for your help.
Today I tried ssh -X without messing with xhost or export DISPLAY..etc.
That is : I did NOT write : xhost +hostname
I did not write: export DISPLAY....
I just wrote:
ssh -X hostname
and once I got into that host, then I wrote xterm.
It is working great.
Previously I was mixing ssh -X and then given command ..DISPLAY.. and then xterm. That is not a proper way.
Proper way is just as I described above. I wrote a detailed reply so that it can help anyone who reads this thread.

Thank you b0uncer. I appreciate taking your time and giving the response.
Best regards.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Xwindow login sylvian14 Slackware 3 01-26-2006 03:25 AM
remote control using xwindow alice95089 Linux - Software 1 03-16-2005 09:49 PM
X windows display in remote machine! UltraSoul Linux - Networking 3 01-10-2005 10:24 PM
remote access to Xwindow Lleb_KCir Linux - General 6 05-14-2004 12:01 AM
How do I setup xwindow to run a remote desktop on my local machine through ssh. green-ears Linux - Newbie 4 11-04-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration