Сил уже моих нет...
Проблема следующая: прикручиваю авторизацию по ssh через pam_mysql.
Соответственно, ничего не работает :)В auth.log процесс выглядит следующим образом:
www sshd[24855]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
www sshd[23390]: debug1: Forked child 24855.
www sshd[24855]: debug1: inetd sockets after dupping: 3, 3
www sshd[24855]: Connection from x.x.x.x port 53558
www sshd[24855]: debug1: Client protocol version 2.0; client software version OpenSSH_5.2
www sshd[24855]: debug1: match: OpenSSH_5.2 pat OpenSSH*
www sshd[24855]: debug1: Enabling compatibility mode for protocol 2.0
www sshd[24855]: debug1: Local version string SSH-2.0-OpenSSH_5.2
www sshd[24855]: Invalid user marakshin from x.x.x.x
www sshd[24855]: debug1: PAM: initializing for "marakshin"
www sshd[24855]: debug1: PAM: setting PAM_RHOST to "x.x.x.x"
www sshd[24855]: debug1: PAM: setting PAM_TTY to "ssh"
www sshd[24855]: Failed none for invalid user marakshin from x.x.x.x port 53558 ssh2
www sshd[24855]: pam_mysql - sqllog set but logtable not set
www sshd[24855]: pam_mysql - sqllog set but logtable not set
www sshd[24855]: debug1: PAM: password authentication failed for an illegal user: Authentication failure
www sshd[24855]: Failed password for invalid user marakshin from x.x.x.x port 53558 ssh2
www sshd[24855]: debug1: do_cleanup
www sshd[24855]: debug1: PAM: cleanup
мои конфиги:
/etc/ssh/sshd_config:
Port 22
ListenAddress x.x.x.x
Protocol 2
SyslogFacility AUTH
LogLevel debug
LoginGraceTime 2m
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 3
ChallengeResponseAuthentication no
UsePAM yes
PasswordAuthentication yes
PrintMotd yes
PrintLastLog yes
TCPKeepAlive yes
UseDNS yes
PidFile /var/run/sshd.pid
MaxStartups 10
Subsystem sftp /usr/lib/ssh/sftp-server
/etc/pam.d/sshd
#%PAM-1.0
auth required pam_mysql.so use_first_pass=no user=root passwd=xxx db=auth table=users passwdcolumn=password usercolumn=username crypt=0 sqllog=yes ...
account required pam_mysql.so
password required pam_mysql.so
session required pam_mysql.so
Буду очень признателен.