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: SSH key authentication - can only login as root |
|---|---|
| Date: | Fri, 08 Sep 2006 11:30:46 +0200 |
(...)
Is this issue specific to ssh? What happens if you locally (on SERVER) try to su -l checkuser with UID=1001? Or use ftp or telnet?
thecus:/var/log# su -l checkuser checkuser@thecus:~$ checkuser@thecus:~$ su Password: thecus:/home/checkuser#
I can login via telnet (using a password).
Also, try turning up the debug in the sshd process to try and see more of what is happening:
# For sshd_config LogLevel DEBUG3
We need to see what happens between the last two lines and the above might help: sshd[18730]: debug1: temporarily_use_uid: 1001/1001 (e=0/0) sshd[18730]: debug1: trying public key file /home/checkuser/.ssh/ authorized_keys sshd[18730]: debug1: restore_uid: 0/0
There is something strange with the key:
So, why the key is allowed if UID=0, and is disallowed if UID!=0?
Last option: you initially said that there were no options enabled in sshd_config to deny users - what about the group options DenyGroups and AllowGroups?
There's no option which allows/denies groups in my config.
-- Tomasz Chmielewski http://wpkg.org
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: openssh: Enabling sftp, but disabling ssh?, Derek Martin |
|---|---|
| Next by Date: | Re: openssh: Enabling sftp, but disabling ssh?, Derek Martin |
| Previous by Thread: | Re: SSH key authentication - can only login as root, Tomasz Chmielewski |
| Next by Thread: | Re: SSH key authentication - can only login as root, Tomasz Chmielewski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |