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. |

| Subject: | Re: Openssh + Solaris 9 and authentication |
|---|---|
| Date: | Thu, 02 Nov 2006 11:22:37 +0000 |
Gladstone, Gary wrote:
We were locking a group of users off a Solaris 9 box by do a "passwd -l <user>". The users were unable to ssh into the box after doing this either using their password of if they had an authorized_keys file.
I'm not sure why ssh failed; I use a similar "trick" on my system to ensure that admin users can only log in using authorized_keys and not passwords.
However, users were still able to scp files onto the box if they had an authorized_keys file. Is there a way to prevent this other than removing the users authorized_keys files?
No as authorized_keys bypasses password authentication and hence being locked out by passwd. What version of SSH are you using? It might be an option to add these users to a particular group and disable public key authentication for them. Or perhaps use some PAM restriction? Ben
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | where are sshd log files located?, E. Hakan Duran |
|---|---|
| Next by Date: | Re: disabling of TCP forwarding ineffective?, catam |
| Previous by Thread: | where are sshd log files located?, E. Hakan Duran |
| Next by Thread: | Re: Odd key problem, Keith Edmunds |
| Indexes: | [Date] [Thread] [Top] [All Lists] |