Re: odd ssh problem.
From: Nigel Stepp (stepp_at_atistar.net)
Date: Wed, 23 Jul 2003 23:56:32 -0400 (EDT) To: Jonathan Crowe <email@example.com>
On Wed, 23 Jul 2003, Jonathan Crowe wrote:
> I have an odd SSH problem.
> I have a server with a stock RH 9 install on it (just installed
> yesterday). I am able to SSH to it as both remotely and locally as root
> but not as any normal user.
> This is the case with both a password login and a public key login.
> From looking at /var/log/messages and /var/log/secure it appears that
> the system is accepting the login and then disconnecting right away.
> These users are able to log in from the console and I am able to su - to
> them as root or as another user with no problems. I am stumped as to
> what is going on here. Does anyone have any ideas?
I would probably run strace, ptrace, or some other utility on sshd to try
to see what is happening between the time authentication is successful,
and when the connection is closed. Some system call may be failing
without an error.
Do you use PAM? If so, I would check your PAM comfiguration as well. I
have had odd authentication problems (not with ssh) that were because of
misconfigured files in /etc/pam.d/. I hear that these are especially
likely on Redhat.
[snip debug and system info]
> Jonathan Crowe
> System Administrator
> for Sage Systems, Inc.
> 425-451-2484 x 3025
-- Nigel Stepp :wq