Extremely slow authentication via SSH on FreeBSD 6.0
youshi10 at u.washington.edu
Mon Jan 9 00:17:41 PST 2006
On Jan 8, 2006, at 11:39 PM, Dave wrote:
> I caught this midthread, but two things. Are you running sshd in
> a jail? And do you have dns resolving? I recently had an ssh slow
> authentication issue, which when found was dns not resolving. Try
> setting UseDns to no in sshd_config see if that helps.
> ----- Original Message ----- From: "Garrett Cooper"
> <youshi10 at u.washington.edu>
> To: <freebsd-questions at freebsd.org>
> Sent: Monday, January 09, 2006 2:42 AM
> Subject: Re: Extremely slow authentication via SSH on FreeBSD 6.0
>> On Jan 8, 2006, at 9:10 PM, Derek Musselmann wrote:
>>> On Jan 8, 2006, at 7:21 PM, Garrett Cooper wrote:
>>>> I'm having a hard time authenticating after upgrading the
>>>> kernel and some packages, and I was wondering if someone could
>>>> help me out with this issue. I marked the trouble points and
>>>> included my sshd_config.
>>> I noticed in your sshd_config that you have:
>>> # Change to yes to enable built-in password authentication.
>>> PasswordAuthentication yes
>>> PermitEmptyPasswords no
>>> # Change to no to disable PAM authentication
>>> ChallengeResponseAuthentication no
>>> By default, ssh uses PAM for authentication. By commenting
>>> those lines out, it doesn't mean that password checking won't be
>>> done, just that it will be handled with PAM.
>>> And then later in the file you have:
>>> UsePAM yes
>>> Try commenting out the PasswordAuthentication,
>>> PermitEmptyPasswords, and ChallengeResponse lines.
>>> Derek Musselmann
>> Tried exactly that, and it doesn't seem to have change the
>> performance, actually =\... It still hangs in the same location,
>> strangely enough.
I should be more specific. Setting UseDNS to no did the trick. Maybe
sshd was confused by my hostname setup in /etc/hosts, but I'm not
going to speculate there. All that I know is that it works like it
used to =).
More information about the freebsd-questions