Estoy ejecutando openssh 6.8p1 y estoy tratando de configurar varios métodos de autenticación
Funciona con solo
AuthenticationMethods "publickey, password"
pero no con
AuthenticationMethods "publickey, password keyboard-interactive: pam"
Sin embargo, sshd no se iniciará. Me da el mensaje de error:
Método de autenticación desconocido "contraseña interactiva con el teclado" en la lista
Aquí está la salida de / usr / sbin / sshd -ddd
debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 667
debug2: parse_server_config: config /etc/ssh/sshd_config len 667
debug3: /etc/ssh/sshd_config:1 setting Protocol 2
debug3: /etc/ssh/sshd_config:2 setting SyslogFacility AUTHPRIV
debug3: /etc/ssh/sshd_config:3 setting PermitRootLogin no
debug3: /etc/ssh/sshd_config:5 setting AuthorizedKeysFile /etc/ssh/authorized_keys
debug3: /etc/ssh/sshd_config:6 setting RevokedKeys /etc/ssh/revoked_keys
debug3: /etc/ssh/sshd_config:8 setting AuthenticationMethods "publickey,password keyboard-interactive:pam,password"
Unknown authentication method "password keyboard-interactive" in list
/etc/ssh/sshd_config line 8: invalid authentication method list.
y aquí está mi configuración sshd
Protocol 2
SyslogFacility AUTHPRIV
PermitRootLogin no
AuthorizedKeysFile /etc/ssh/authorized_keys
RevokedKeys /etc/ssh/revoked_keys
AuthenticationMethods "publickey,password keyboard-interactive:pam"
PasswordAuthentication yes
ChallengeResponseAuthentication yes
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
X11Forwarding yes
Banner /etc/motd
Subsystem sftp /usr/libexec/openssh/sftp-server