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: Safar on Mar 31, '05 11:03:09AM

... i think you could change 'VerifyReverseMapping yes' to 'VerifyReverseMapping no' in /etc/sshd_config on the host computer. But i'm not sure...

[ Reply to This | # ]
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 | # ]

A possible fix for slow SSH connections
Authored by: ptroot on Mar 31, '05 09:12:49PM

That would be in ssh_config not sshd_config. sshd_config controls the local daemon.

The problem is a dns timeout. ssh is trying to resolve the
address. The easiest fix is putting it in hosts. Next would be making sure dns is working.

[ Reply to This | # ]
sshd_config vs. ssh_config
Authored by: sjk on Apr 03, '05 07:12:10PM
What would be in ssh_config? VerifyReverseMapping and AllowUsers keywords are only valid in sshd_config.

[ Reply to This | # ]