Linux - NetworkingThis 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.
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.