LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2004, 11:57 PM   #1
kuronai
LQ Newbie
 
Registered: Aug 2003
Location: Ballarat, Victoria, Australia
Distribution: Redhat 9.0
Posts: 14

Rep: Reputation: 0
Unhappy Remote X with Cygwin, ssh problems


I'm trying to use Cygwin and ssh -X to run a remote X display.

I open up Cygwin and run xinit to bring up X, then use ssh -X to connect
to the remote computer, but when it connects, it prints this error:

/usr/X11R6/bin/xauth: (stdin):1: bad display name "bathouse2:10.0" in "add" command

But bathouse2 is the name of the remote computer i'm trying to run
the display from, not the computer i want to run X on.
I've changed the sshd_config file to allow X11Forwarding, but still i get
the same error.

Any ideas on what the problem is?
 
Old 06-02-2004, 02:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
On the server try setting:
export DISPLAY="ip.of.cygwin.machine:0"
 
Old 06-02-2004, 06:29 PM   #3
kuronai
LQ Newbie
 
Registered: Aug 2003
Location: Ballarat, Victoria, Australia
Distribution: Redhat 9.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for your reply, that will work, but apparently it negates the benefit of using SSH
to forward X11 connections.

From the SSH man page...

" X11 and TCP forwarding

If the user is using X11 (the DISPLAY environment variable is set), the
connection to the X11 display is automatically forwarded ...
through the encrypted channel... The user should not manually set DISPLAY...

The DISPLAY value set by ssh will point to the server machine, but with a
display number greater than zero. This is normal, and happens because
ssh creates a ``proxy'' X server on the server machine for forwarding the
connections over the encrypted channel." "

So export DISPLAY=ip.of.cygwin.machine:0 will work, but according to the ssh man page
it should be setting it up right itself... thats what's confusing the heck out of me.

I dont know if it's of any worth, but the machine i'm trying to access through SSH is running
RedHat 7.2, and OpenSSH-Server 2.9p2-7.i386...

Any other ideas?
 
Old 06-03-2004, 04:18 AM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Originally posted by kuronai
Thanks for your reply, that will work, but apparently it negates the benefit of using SSH
to forward X11 connections.

From the SSH man page...

" X11 and TCP forwarding

If the user is using X11 (the DISPLAY environment variable is set), the
connection to the X11 display is automatically forwarded ...
Sorry, complete cygwin ignoramus here, but just reading this, this seems to say that the DISPLAY environment variable must be set on the forwarding display, and does not refer to the receiving display.

Is the DISPLAY environment variable set on the remote computer who is meant to forward its display to you? If not, my knowledge of the export command suggests that that's what it is setting on the fly.

Again, forgive me if I'm misreading this; I'm trying to learn more about forwarding displays/SSH/VNC before I begin using such functionality myself.

Last edited by motub; 06-03-2004 at 04:19 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop, ssh, vnc, rdesktop, RDP, cygwin? chbin Linux - Networking 7 12-17-2005 05:28 PM
problems with Cygwin X tunnel through ssh kooshball Linux - Software 1 09-09-2005 11:23 AM
cygwin and remote KDE desktop ARCHIGAMER Linux - General 2 04-10-2005 11:45 AM
problems with X-apps when executed on remote host via ssh numerous Linux - Software 1 01-17-2005 07:08 PM
problems getting remote ssh/X connection working fabs Linux - Newbie 6 03-01-2004 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:50 AM.

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