openssh-3.6.1p2 server did not accept user connection.

Logu logsnaath at gmx.net
Wed Apr 27 16:02:21 EST 2005


Hi,

Whenever i boot the machine, the sshd started using rc script is not
accepting ssh connection from a normal user. However it connects as root
user and also connects as a user when the sshd is restarted. The error
message is
"fatal: PAM session setup failed[6]: Permission denied"

What would be the reason for this behaviour ?

I am using Linux-2.6.5-1.358 (Fedora Core release 2) and openssh version
(OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f ) which came
with the distribution. The debug out is given below.

Thanks
-logu


The debug output:

Apr 27 09:34:02 jasmine sshd[3176]: debug1: session_input_channel_req:
session 0 req pty-req
Apr 27 09:34:02 jasmine sshd[3176]: debug1: lastlog_openseek: Couldn't open
/var/log/lastlog: Permission denied
Apr 27 09:34:02 jasmine sshd[3176]: debug1: Allocating pty.
Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: init
Apr 27 09:34:02 jasmine sshd[3174]: debug1: session_new: session 0
Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_pty_req: session 0 alloc
/dev/pts/17
Apr 27 09:34:03 jasmine sshd[3176]: debug1: server_input_channel_req:
channel 0 request shell reply 1
Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_by_channel: session 0
channel 0
Apr 27 09:34:03 jasmine sshd[3176]: debug1: session_input_channel_req:
session 0 req shell
Apr 27 09:34:03 jasmine sshd[3176]: debug1: PAM setting tty to "/dev/pts/17"
Apr 27 09:34:03 jasmine sshd(pam_unix)[3176]: session opened for user logu
by (uid=507)
Apr 27 09:34:03 jasmine sshd[3176]: fatal: PAM session setup failed[6]:
Permission denied
Apr 27 09:34:03 jasmine sshd[3176]: debug1: Calling cleanup
0x8059c20(0x808dd20)




More information about the openssh-unix-dev mailing list