|
|
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|