Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A possible fix for slow SSH connections' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A possible fix for slow SSH connections
Authored by: rprestonatmitre on Mar 31, '05 11:21:55AM
Changing the line
VerifyReverseMapping yes
VerifyReverseMapping no
will also fix the delay. Because I'm the only ssh user on my system, I've also added the line
AllowUsers myShortUsername
to etc -> sshd_config

You may also want to create an etc -> hosts.deny containing

ALL: ALL: deny
to stop all incoming connections. To enable ssh logins, create etc -> hosts.allow,
sshd: ALL
sshd-keygen-wrapper: ALL

I'm not sure this is the best solution, but it works. It blocks all incoming connections except ssh. All ssh connections get passed to the ssh daemon, which allows only the user "myShortUsername" to connect, and there is no delay due to reverse name lookups.

[ Reply to This | # ]