ssh session suddenly closed after successfully login.
Linux server integrated to Active Directory , joined domain , pulled all users and groups from domain.
When user from AD tries to login using ssh , it gives below errors and closes SSH session.
sshd: pam_unix(sshd:session): session opened for user
sshd: pam_unix(sshd:session): session closed for user
Does anyone know how to fix this issues.
You should at least provide the product and the distribution and version of Linux you are using This may not be the right forum. Perhaps you would like to give "Likewise Open" a try, which is a free Open Source product and apparently simplifies the task to join Linux and other systems to AD.
Linux = OEL 5.7 Integrating to Active Directory on Windows 2008 server .
Hardware = Dell Blades on X86
Problem Description: Linux (OEL5.7) SSH login fails with pam_unix(sshd:session): session closed for user.
Linux server 2.6.18-218.104.22.168.1.el5 is integrated to Active Directory and joined the domain. The server can pull user and groups from Active Directory.
While Active Directory users try to login to Linux through SSH , it throws below error on /var/log/secure and closes the session immediately.
Nov 1 12:54:30 LNTTARITETSDB1 sshd: pam_unix(sshd:session): session opened for user rmokkala by (uid=0)
Nov 1 12:54:42 LNTTARITETSDB1 sshd: pam_unix(sshd:session): session closed for user rmokkala
Thanks in advance.
It successfully allows me to login to Linux server and then throws me out of SSH session. Please see below commands.
[root@LNTTAVMRITEBJ2 ~]# pam_tally2 -u rmokkala
Login Failures Latest failure From
[root@LNTTAVMRITEBJ2 ~]# faillog -u rmokkala
Login Failures Maximum Latest On
rmokkala 0 0 12/31/69 18:00:00 -0600
thanks in advance.
pam_tally2 is typically used in /etc/pam.d/system-auth to lock an account after failed logins.
To unlock an account use e.g. "pam_tally2 -r -u oracle"
Pl see my previous response.
Also I wonder about rmokkala and uid=0, which must be used by root only. How did you make rmokkala=UID 0?