Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-01-2016, 06:35 PM   #1
Registered: Aug 2010
Posts: 48

Rep: Reputation: 0
Question X11 Remote connection problems

Not sure if this is the proper forum but here goes.
I'm attempting to connect to an embedded Linux box (running Yocto) via ssh X11 forwarding. My desktop machine is a Mac running the XQuartz 2.7.8. Now, I am able to ssh -X into another Mac also running XQuartz and launch xeyes with it. So I'm reasonably convinced that the Mac side of things is working.

I've got the X11 options in sshd_config on the Linux box set up thusly:

AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

When I ssh -X root@ts-imx6.local, I get the following:

/usr/bin/xauth: file /home/root/.Xauthority does not exist
/usr/bin/xauth: (stdin):1: bad display name "ts-imx6:10.0" in "remove" command
/usr/bin/xauth: (stdin):2: bad display name "ts-imx6:10.0" in "add" command

When I do something dead simple like xset -q > /dev/null, I get
xset: unable to open display "ts-imx6:10.0"

Some online references talk about the DISPLAY environment variable not being set properly and that it should be localhost:10.0 so I try

export DISPLAY=localhost:10.0

Now, when I try xset -q > /dev/null, I get

X11 connection rejected because of wrong authentication.
xset: unable to open display "localhost:10.0"

At this point, I'm at a loss as to what I'm missing or doing wrong.
Old 03-01-2016, 08:33 PM   #2
Doug G
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
I'd try using a non-root user, maybe your embedded system doesn't allow root gui
Old 03-02-2016, 09:53 AM   #3
Registered: Aug 2010
Posts: 48

Original Poster
Rep: Reputation: 0
No soap, Doc. Slightly different but no luck. As soon as I log in to a regular user I get:

/usr/bin/xauth: (stdin):1: bad display name "ts-imx6:10.0" in "remove" command
/usr/bin/xauth: (stdin):2: bad display name "ts-imx6:10.0" in "add" command

Then when I try the simplest X11 command I get:

ts-imx6:~$ xset -q > /dev/null
xset: unable to open display "localhost:10:0"
Old 03-04-2016, 03:41 PM   #4
LQ Newbie
Registered: Jan 2010
Posts: 20

Rep: Reputation: 3
I am not sure if it is right, but I got the nearly same fault in the past about to run x11vnc on the system until i could manage to tell the unit who has got the rights to use the display. The question is only how you get that in a ssh -X session becaus I did not use that until today. I might try it as I did always use x11vnc for getting somethin simular. Had to set up lots of things in my .x11vncrc to make it working but since than its working fine for me.


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
Problems with remote connection bet. Linux and Win using SSH and Putty cucolin@ Ubuntu 4 10-02-2006 10:53 PM
Remote Desktop / X11 connection? bob7 Linux - Networking 1 02-11-2006 04:57 PM
Mysql Remote Connection Problems harbringer Linux - Software 5 04-14-2005 02:42 PM
problems getting remote ssh/X connection working fabs Linux - Newbie 6 03-01-2004 10:24 PM
Remote login dial-up connection problems Sikoliwe Linux - Networking 1 01-16-2004 05:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 AM.

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