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: per user authentication types?

Subject: Re: per user authentication types?
Date: Sat, 08 Apr 2006 13:17:06 +1000
ssh@ml.icemark.net wrote:
Can I restrict authentication types for specific users?
[using openssh-server 4.2p1-8 on Debian SID, x86]

Right now, no, not really.

You can do some limited things (eg setting a given user's passwd field in /etc/shadow to "*", which will prevent password authentication while still allowing non-password authentications) but there's no general method.

There's been some work[1] recently to extend sshd_config to allow it to apply some config directives based on certain attributes of the connection. If you're prepared to try the patch, it allows for directives in sshd_config such as:

PasswordAuthentication no
Match User user1,user2
        PasswordAuthentication yes
Match Group pwallowed
        PasswordAuthentication yes

and similar.

[1] http://bugzilla.mindrot.org/show_bug.cgi?id=1180

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

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