SSH no me deja entrar por "publickey"
Hola, me pasa algo muy extraño. Accedo casi diariamente a un servidor Debian
Etch por SSH y clave pública y ayer en medio de una sesión, sin haber hecho
nada raro, ya no podía volver a acceder por clave pública.
Puedo asegurar categóricamente que mi clave está en perfecto estado pues con
ella accedo a otros equipos, e incluso he probado a generar una nueva (una
RSA), portarla al servidor con "ssh-copy-id" como hago siempre y tampoco
puedo acceder. Incluso he probado a copiar mi clave a otro equipo y acceder
desde él a la Debian Etch con el mismo resultado.
Por supuesto que el SSHD del servidor está perfectamente configurado para
permitir publickey y keyboard-interactive:
------------
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
-------------
Pego ahora el log (-vvv) de mi SSH cuando intenta acceder al servidor:
-----------------------------------
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ibc/.ssh/identity
debug3: no such identity: /home/ibc/.ssh/identity
******** Aquí mi máquina le ofrece las claves RSA y DSA al servidor *********
debug1: Offering public key: /home/ibc/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering public key: /home/ibc/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
******** El servidor ha hecho caso omiso de mi clave RSA *********
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
******** Y finalmente me pide password por teclado *********
Password:
-----------------------------------
En fin, algo insólito sobre todo porque ocurrió así porque sí.
Insisto en que mi clave es correcta y está perfectamente definida en mi
authorized_keys del servidor.
¿A alguien se le ocurre algo? Muchas gracias.
--
Iñaki Baz Castillo
Reply to: