Problem with SSHD

Hello
i just installed centos 4.2 on 2 pc and local networking .

PC A : 192.168.0.1
PC B : 192.168.0.2

This is my /etc/pam.d/sshd configuration of PC A . it checking password from pc B useing pa,_mysql
#%PAM-1.0

auth required pam_mysql.so user=sony passwd= host=192.168.0.2 db=logindb table=main usercolumn=username passwdcolumn=password crypt=0

account required pam_mysql.so user=sony passwd= host=192.168.0.2:3306 db=logindb table=main usercolumn=username passwdcolumn=password crypt=0

#auth required pam_stack.so service=system-auth
auth required pam_nologin.so
#account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session required pam_loginuid.so
okey now tesing from PC A To PC A !
[root@localhost ~]# ssh google@127.0.0.1
google@127.0.0.1's password: <-- it checking password from pc B
Last login: Fri Mar 3 12:21:56 2006 from localhost.localdomain
again conenctiong from pc a to ssh server of pc a BUT to local ip
[root@localhost ~]# ssh google@192.168.0.1
google@192.168.0.1's password: <-- with any entry
Connection closed by 192.168.0.1 < immediately closing connection
i just tested this on PC A ! and i dont know why its not working with 192.168.0.1 IP ! Problem with SSHD

BUT WITH NORMAL pam./sshd settings its working for 192.168.0.1

NOW MY PROBLEM IS WITH PAM_MYSQL IS ONLY WORKING FOR 127.0.0.1 IP ! Problem with SSHD

 

 

 

 

Top