|
|
|
A script to workaround slow ssh connection issues
Like many, I've had the same issue for a long time. After much digging and network sniffing, I found out that the ssh client on Mac OS X (Tiger and up, at least) performs a DNS lookup for the SRV record of the host you are connecting to.
SRV records essentially specify the port on which a service runs, and are seldom used. For example, when I was connecting to a host named "server1.domain.local", an SRV record lookup was made for the following domain name:
Since there was no such SRV record, there was a slight delay before the client (presumably) fell back to another method. So I simply added the following record in the local DNS server's appropriate zone file:
And voilĂ ! No more delays. Granted, not everyone runs a local DNS server, but this should help some of you.
A script to workaround slow ssh connection issues
You shouldn't be seeing the SRV behaviour in Tiger, just Leopard. For those who care about the details, here's the explanation I sent to someone on a local sysadmin mailing list when they were running into ssh delays right after Leopard was released:
A script to workaround slow ssh connection issues
Thanks for pointing this out. It seems like a resonable explanation.
Now the harder part is to convince our DNS admins to put this record into the DNS configuration for hundreds of servers. |
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,495 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.03 seconds |
|