only root can log in using ssh after reboot

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have an old dell running fedora core 1 and run into a weird problem
with ssh.

Linux dell 2.4.22-1.2199.nptl #1 Wed Aug 4 12:21:48 EDT 2004 i686 i686
i386 GNU/Linux

Following is the steps to reproduce the problem.

1) reboot the box

2) try log in using ssh with a regular user account. It prompt for the
password. After typing the password, the session was terminated
immediately with following error message.

Server unexpectedly closed network connection

3) found following errors in /etc/message

Apr 14 20:51:35 dell sshd[2895]: Accepted password for frank from port 2684 ssh2
Apr 14 20:51:35 dell sshd(pam_unix)[2897]: session opened for user
frank by (uid=500)
Apr 14 20:51:35 dell sshd[2897]: fatal: PAM session setup failed[6]:
Permission denied

4) log in as root instead. It's successful.

5) restart the ssh service without changing any configuration.

6) now try to log in as regular user again. it is successful onwards.

What could be the problem? How to fix this?

Thank you in advance.

Re: only root can log in using ssh after reboot

Quoted text here. Click to load it

It would be useful to post the SSH version and config.

I think I remember problems several years ago involving privilege
separation and UseLogin.

Elvis Notargiacomo  master AT barefaced DOT cheek /

Site Timeline