ssh -X remote does not work due to problem with xauth

Matthias Apitz guru at unixarea.de
Thu May 10 17:27:32 UTC 2018


El día jueves, mayo 10, 2018 a las 08:46:00a. m. -0700, Bruce Ferrell escribió:

> I think this output is key:
> 
> couldn't query Security extension on display ":0"

Yes, I agree.

> xauth (at the sshd end) is attempting to interrogate the X server on the 
> ssh end and not getting an expected response, and as a result failing to 
> generate the necessary entries in the file xauth file.

No. I straced the remote sshd while I ssh'ed into the server. On the remote side there
is no xauth called:

$ grep exec sshd.tr
1369  execve("/usr/sbin/sshd", ["/usr/sbin/sshd", "-D", "-R"], [/* 3 vars */] <unfinished ...>
1369  <... execve resumed> )            = 0
1373  execve("/bin/bash", ["-bash"], [/* 12 vars */]) = 0
1375  execve("/usr/bin/readlink", ["readlink", "/proc/1373/exe"], [/* 15 vars */]) = 0
1377  execve("/usr/bin/tty", ["tty"], [/* 15 vars */]) = 0
1379  execve("/bin/uname", ["/bin/uname", "-n"], [/* 16 vars */]) = 0
1381  execve("/bin/uname", ["/bin/uname", "-m"], [/* 16 vars */]) = 0
1383  execve("/usr/bin/manpath", ["/usr/bin/manpath", "-q"], [/* 32 vars */]) = 0
1385  execve("/usr/bin/ls", ["ls", "/etc/bash_completion.d"], [/* 38 vars */]) = 0
1387  execve("/usr/bin/tty", ["tty"], [/* 43 vars */]) = 0
1391  execve("/usr/bin/sed", ["sed", "-r", "s@/*:|([^\\\\]):@\\1\\n at g;H;x;s@/\\n@"...], [/* 48 vars */]) = 0
1395  execve("/usr/bin/sed", ["sed", "-r", "s@/*:|([^\\\\]):@\\1\\n at g;H;x;s@/\\n@"...], [/* 49 vars */]) = 0
1397  execve("/usr/bin/dircolors", ["/usr/bin/dircolors", "-b", "/etc/DIR_COLORS"], [/* 53 vars */]) = 0
1399  execve("/usr/bin/tput", ["/usr/bin/tput", "hs"], [/* 55 vars */]) = 0
1401  execve("/usr/bin/tput", ["/usr/bin/tput", "tsl"], [/* 55 vars */]) = 0
1403  execve("/usr/bin/tput", ["/usr/bin/tput", "fsl"], [/* 55 vars */]) = 0
1405  execve("/usr/bin/tput", ["tput", "sc"], [/* 55 vars */]) = 0
1407  execve("/usr/bin/tput", ["tput", "rc"], [/* 55 vars */]) = 0
1410  execve("/usr/bin/tty", ["tty"], [/* 55 vars */]) = 0


$ grep xauth sshd.tr
$ 

The problem is LOCAL on FreeBSD. (Btw: my colleagues use Ubuntu and do
not have this problem.)

I will move this thread to freebsd-x11@ because it has more todo with X11 than
with the ssh client.

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20180510/f1ae6e5d/attachment.sig>


More information about the freebsd-questions mailing list