LinHES Forums
http://forum.linhes.org/

HOWTO: speed-up sshd authentication
http://forum.linhes.org/viewtopic.php?f=11&t=17836
Page 1 of 1

Author:  graysky [ Tue Feb 05, 2008 5:59 pm ]
Post subject:  HOWTO: speed-up sshd authentication

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!

Author:  willem [ Wed Feb 06, 2008 1:46 am ]
Post subject: 

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.

Author:  graysky [ Wed Feb 06, 2008 2:21 pm ]
Post subject: 

Yes, as I understand it, the reverse lookup is to blame. Thanks for the suggestions.

Author:  tjc [ Wed Feb 06, 2008 9:59 pm ]
Post subject: 

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".

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/