Tentando se conectar a um servidor. Recebi uma chave privada para fazer login no servidor que adicionei ao id_rsa. No entanto, o cliente continua tentando passar isso como chave pública em vez de id_rsa.pub. Isso ocorre porque id_rsa.pub não está no meu arquivo ssh_config?
TENTATIVA DE CONEXÃO COM 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
ARQUIVO DE CONFIGURAÇÃO SSH (SEÇÃO DE IDENTIDADE)
root@etoorlan4c:~/.ssh# cat /etc/ssh/ssh_config
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
CONTEÚDO DE ~/.ssh/
root@etoorlan4c:~/.ssh# ls
authorized_keys id_rsa id_rsa.pub known_hosts
Responder1
A chave privada era inválida. Um único personagem estava faltando nele. A saída muda da seguinte forma quando uma chave privada válida é usada:
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).