Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-01-2004, 11:57 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: Ballarat, Victoria, Australia
Distribution: Redhat 9.0
Posts: 14
Rep:
|
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?
|
|
|
06-02-2004, 02:15 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
On the server try setting:
export DISPLAY="ip.of.cygwin.machine:0"
|
|
|
06-02-2004, 06:29 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Location: Ballarat, Victoria, Australia
Distribution: Redhat 9.0
Posts: 14
Original Poster
Rep:
|
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?
|
|
|
06-03-2004, 04:18 AM
|
#4
|
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|