| Summary: | X11 forwarding no longer works after upgrading from 2.9.9p2 to 3.4p1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | John R. Jackson <jrj> | ||||
| Component: | ssh | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | SPARC | ||||||
| OS: | Solaris | ||||||
| URL: | ftp://gandalf.cc.purdue.edu/pub/ssh/ssh-X11-bug.tgz | ||||||
| Attachments: |
|
||||||
|
Description
John R. Jackson
2002-07-06 04:20:45 AEST
will look into this Please try: Add in sshd_config: XAuthLocation /usr/openwin/bin/xauth And in ssh_config: Host * ForwardX11 yes ForwardAgent yes XAuthLocation /usr/openwin/bin/xauth I figured out the problem. The real culprit is, of all things, the version of bash that Sun now releases. The ./configure script tries to find a "good" shell to use. On one of my machines (2.6) I had stupidly created a /bin/bash symlink and it found that ahead of /bin/ksh. On one of my Solaris 8 machines it found the Sun version. On all the others I had forced ./configure to use /bin/ksh or it found it first on its own. Those mismatches, of course, led to all sorts of confusion as it appeared to me xauth was running OK. In either case, bash is not capable of finding xauth properly with the code that's in ./configure. I added some debugging code and it does something like this: Looking for /bin/xauth Looking for /usr/bin/xauth Looking for /usr/local/bin/xauth ... Looking for /usr/openwin/bin:/bin:/usr/bin:/usr/local/bin:.../xauth It's clearly having trouble breaking $PATH apart, and, as luck would have it, the problem is with the last element, which is where it puts /usr/openwin/bin to look for xauth. Sigh. Bash was also was causing me other problems, which is why on most of my machines I put "CONFIG_SHELL=/bin/ksh" in the ./configure environment. Had I remembered to do that everyplace, I wouldn't have gone down this twisty path. The other two solutions to this (--with-xauth and XAuthLocation) should both work, but only fix the xauth discovery issue. I'd be real suspicious of other things bash was messing up, though. I tried to add some code to ssh.c to detect when xauth was missing, which might have speeded up diagnosing this, but it got more complicated than I wanted to spend time on. You don't appear to have a text file documenting OS specific issues, but I suggest a note someplace warning Solaris builders to stay away from bash. Created attachment 132 [details]
fix for autoconf 2.53 PATH problems
Could someone with autoconf 2.53 test attachment 132 [details] and see
if it fixes the xauth problem.
I've verified the suggested patch in the 07/17/02 attachment takes care of the problem. John R. Jackson, Technical Software Specialist, jrj@purdue.edu |