Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: Password auth turned off in OpenSSH

Subject: Re: Password auth turned off in OpenSSH
Date: 12 Oct 2004 01:43:38 -0400
On Mon, 2004-10-11 at 20:48, Darren Tucker wrote:
C. Linus Hicks wrote:

In auth2.c, input_userauth_request() does a lookup of the authmethod 
before actually attempting the authentication.

      /* try to authenticate user */
      m = authmethod_lookup(method);
      if (m != NULL) {
              debug2("input_userauth_request: try method %s", method);
              authenticated =>m->userauth(authctxt);
      }

and authmethod_lookup checks the "disabled" flag (this is what 
"PasswordAuthentication no" sets) before returning the method.  If you 
have the password method disabled, the authentication will not be tested 
by the server and the userauth request from the client will just fail.

You can confirm this by turning up the debug level on sshd.  You'll get 
a "Unrecognized authentication method name: password" from 
authmethod_lookup and you won't see the "try method" messages for these 
requests.

Okay, thanks for the comprehensive explanation. I have set logging level
to debug3, restarted sshd, and re-opened the port in my firewall. I will
have to wait a while and see what turns up in my logs.

-- 
C. Linus Hicks <lhicks@nc.rr.com>

<Prev in Thread] Current Thread [Next in Thread>