Intentando conectarse a un servidor. Recibí una clave privada para iniciar sesión en ese servidor que agregué a id_rsa. Sin embargo, el cliente sigue intentando pasarla como clave pública en lugar de id_rsa.pub. ¿Esto se debe a que id_rsa.pub no está en mi archivo ssh_config?
INTENTO DE CONEXIÓN AL SERVIDOR
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
ARCHIVO DE CONFIGURACIÓN SSH (SECCIÓN IDENTIDAD)
root@etoorlan4c:~/.ssh# cat /etc/ssh/ssh_config
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
CONTENIDO DE ~/.ssh/
root@etoorlan4c:~/.ssh# ls
authorized_keys id_rsa id_rsa.pub known_hosts
Respuesta1
La clave privada no era válida. Le faltaba un solo personaje. La salida cambia de la siguiente manera cuando se utiliza una clave privada válida:
debug1: Offering RSA public key: root@etoorlan4c
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: sshkey.private
debug3: sign_and_send_pubkey: RSA SHA256:jmMyCOppv3KKkRgiHI4s5h3I7LwyCgms8uSG06KClQ4
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to [remoteHost]([xxx.xxx.xxx.xxx]:22).