View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Feb 05, 2008 5:59 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
This is perhaps the shortest howto I have ever written. If you're experiencing a 15-30 second delay when connecting to your mythtv box via ssh, add the following line to your /etc/ssh/sshd_config file:

Code:
UseDNS no


For some reason, the out-of-the-box sshd_config in R5F27 is lacking this which causes the delay.

Enjoy!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 1:46 am 
Offline
Joined: Tue Feb 03, 2004 3:23 am
Posts: 159
Location: Friesland, The Netherlands
The sshd probably tries to do a reverse lookup of the IP that tries to connect. This can very well cause the 15-30 seconds delay that you describe. An alternative solution is to make sure that you either setup DNS locally so that all IPs on your home network are resolved or add entries to /etc/hosts of the workstations that connect to the sshd.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 2:21 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Yes, as I understand it, the reverse lookup is to blame. Thanks for the suggestions.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 9:59 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Once you fix your /etc/hosts to include this info, be sure to add it to the supplemental restore list in /myth/backup/restore.list so that you don't lose this on your next upgrade.

Don't forget the leading dot on the name as described in this thread on "Taking advantage of the enhanced backup and restore scripts".


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu