Since 10.6.3, ssh w/x11 forwarding takes …
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm not 100% sure if the OS upgrade to 10.6.3 is involved or not, but I've noticed that all of a sudden, ssh connections to my Linux box would take like 30 seconds before I'd get a prompt. I tried lots of different things to resolve the problem, but what finally worked was disabling "-Y", forwarding X11. Can anyone give any insight into this and help me resolve it so that I can forward X11 without the connection taking forever to establish?
Thanks.
15 replies
Sign in or join Beachball Help to reply.
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This is definitely a problem with 10.6.3 that was not there with 10.6.2. Two of my Macs have been updated, and they have the problem, while the one that has not is fine.
- 0
etresoft ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
It is a DNS configuration problem. I don't know the details. It used to come up on a regular basis.
- 0
Charles Minow ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
etresoft wrote:
It is a DNS configuration problem. I don't know the details. It used to come up on a regular basis.Yeah, this sound familiar to me, too. I had a similar problem a long time ago with a long gone version of the OS, and I think I ended up editing the
/etc/host files and it went away.One thing you can do is to make
ssh more verbose and see where it's getting hung up. Add the "-v" flag to get debug information. Keep adding a "v" to get more and more information. In other words, try "ssh -v" and if that's not enough information, try "ssh -vv", up to three "v"s.charlie
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
It COULD be a DNS problem. But I tried to rule that out by setting UseDNS to no in sshd_config and -u0 on the sshd command-line. This should have turned off all attempts by sshd to do forward or reverse DNS lookups. I've also tried a good number of other things, but the only thing that helped was to turn off X11 forwarding, which should have nothing at all to do with DNS.
- 0
BobHarris ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
sshd_config on the Linux system?
The use of ssh -v -v -v should give you an idea of where ssh is hanging just based on the debug messages and what they are telling you.
Message was edited by: BobHarris
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for your offer to help.
Here's the configuration file on the Linux server:
http://pastebin.com/Jj94hnERThis is a transcript of debug output when -Y is NOT included:
http://pastebin.com/nk1kQpsfThis is a transcript of debug output when -Y IS included:
http://pastebin.com/siiGsSmzSearch for ### to see where it froze up for 30 seconds.
So to clarify:
- Problem occurs when client is 10.6.3 MacOS X and includes -Y option.
- This happens with any Linux host
- Problem does not occur with 10.6.2Alas, my wife updated her computer to 10.6.3 last night, so I can't tinker with 10.6.2 anymore. I would love to provide a debug trace from a 10.6.2 client with -Y, but I can't.
- 0
etresoft ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
There is a standard set of X11 debugging tips.
First, create a new account on the Mac and try it there. This should always work. If it doesn't, you have more serious system and/or remove host issues.
Try deleting your .Xauthority file and your ~/Library/Preferences/org.x.x11.plist files.All of this is assuming you have a default configuration and haven't installed any bleeding edge Quartz build, shell mods, and haven't set any X11 environment variables like DISPLAY.
- 0
Jun T. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
What happens if you manually run xauth on your Mac? Does it return immediately?
$ xauth -v listIf there are files like ~/.Xauthority-c or ~/.Xauthority-l, then remove them.
- 0
Jun T. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
On my 10.6.3 iMac:
$ echo $DISPLAY
/tmp/launch-AeaF19/org.x:0
$ xauth list $DISPLAY
xauth: (argv):1: bad display name "/tmp/launch-AeaF19/org.x:0" in "list" commandxauth finishes without any delay (with the above error).
I tried 'ssh -Y' from 10.6.3 to another 10.6.3, and it worked as expected (no delay, with X11 forwarding working fine).On 10.5.8, DISPLAY does not contain 'org.x', and 'xauth list $DISPLAY' works fine. Does anybody know whether DISPLAY contains 'org.x' or not in 10.6.2?
- 0
BobHarris ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
On 10.5.8, DISPLAY does not contain 'org.x', and 'xauth list $DISPLAY' works fine. Does anybody know whether DISPLAY contains 'org.x' or not in 10.6.2?
This is from my 10.6.2 iMac:
xauth list $DISPLAY
my.Macs.domain.name/unix:0 MIT-MAGIC-COOKIE-1 123my_MIT_MAGIC_COOKIE789
echo $DISPLAY
/tmp/launch-R2KAFK/:0
system_profiler|grep 10.6
System Version: Mac OS X 10.6.2 (10C2234)I use ssh -Y to Redhat Linux RHEL5 (32 and 64-bit) systems all the time.
I do NOT have a 10.6.3 system at this time.
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Nothing bleeding edge, no special environment variables, no shell mods. And I think I've basically already done the "X11 debugging tips" you suggest in the sense that the problem occurs for all three Macs I own for all accounts, even if X11 was never used (like on my wife's computer). And the pattern is consistent. It's fast until I upgrade to 10.6.3, and then it's slow.
BTW, I have filed a bug report with Apple on this. This is clearly not a configuration problem unique to any one computer. If some configuration is messed up, then only one machine should misbehave, because the only thing in common is that they run Mac OS X.
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Some more info:
I did "time xauth -v list", and it took 4 seconds. Then I moved aside my .Xauthority, and tried it again. It was instantaneous.
Then I put the -Y back in my ssh script, and it was FAST. (Moreover, it was fast over the internet, because I'm not home right now.)
This looks like it might have fixed the problem. My guess: Apple changed something about X11 authentication, and if you have an old .Xauthority file lying around, the new version chokes.
I'll try this same trick on my other computers and see what happens and report back.
Thanks!!
- 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
False hope.
I tried again a few hours later, and the delay problem came back. This time, there is no ~/.Xauthority file to delete. But removing -Y makes the delay problem go away. And as before, the hang up is when it's doing this:
debug2: x11
getproto: /usr/X11R6/bin/xauth list /tmp/launch-MiWU6v/org.x:0 2>/dev/null - 0
theosib ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
And one other thing: "xauth -v list" is instantaneous now, but ssh with -Y still takes a long time.
- 0
Jun T. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Is 'xauth list $DISPLAY' also instantaneous?