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)
Darren Tucker
2005-Apr-27 06:24 UTC
openssh-3.6.1p2 server did not accept user connection.
Logu wrote:> 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.There was an issue with selinux and sshd. See: http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=108608103318162 If booting with selinux disabled solves your problem then that's probably it. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Maybe Matching Threads
- OpenSSH 3.6.1p2 +UnixWare 7.1.1 +SSH2 + PasswordAuthenticatio n no + PermitEmptyPasswords yes (followup)
- possible bug + patch : OpenSSH 3.6.1p2 +UnixWare 7.1.1 +SSH2 + P asswordAuthentication no + PermitEmptyPasswords yes
- Samba 3 with ADS problem
- Rails 3.1 jasmine testing
- Samba ADS problem