+ Responder ao Tópico



  1. #1

    Padrão Utilizando SSH com método de autenticação publickey

    Gerei a chave em minha máquina e coloquei a pública em 2 máquina do trabalho no diretório "~/.ssh". Em 1 funcionou corretamente, já em 2 me solicita a senha a todo momento.

    Efetuando testes nas duas máquinas utilizando o modo de debug "-vvv" e analisando o log das 2 máquina achei a divergência neste ponto abaixo.

    Máquina 1 (Que funciona):
    -----------------------------------------------------
    debug1: Trying private key: /home/felipe/.ssh/identity
    debug3: no such identity: /home/felipe/.ssh/identity
    debug1: Offering public key: /home/felipe/.ssh/id_rsa
    debug3: send_pubkey_test
    debug2: we sent a publickey packet, wait for reply
    debug1: Server accepts key: pkalg ssh-rsa blen 277
    debug2: input_userauth_pk_ok: fp 36:62:9d:82:5d:e6:04:fa:d2:d7:c3:7f:c6:3f:fc:88
    debug3: sign_and_send_pubkey
    debug1: read PEM private key done: type RSA
    -----------------------------------------------------

    Máquina 2 (Com problema)
    -----------------------------------------------------
    debug1: Trying private key: /home/felipe/.ssh/identity
    debug3: no such identity: /home/felipe/.ssh/identity
    debug1: Offering public key: /home/felipe/.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: Trying private key: /home/felipe/.ssh/id_dsa
    debug3: no such identity: /home/felipe/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    debug3: authmethod_lookup keyboard-interactive
    debug3: remaining preferred: password
    debug3: authmethod_is_enabled keyboard-interactive
    -----------------------------------------------------

    Sabe me dizer o que devo fazer para isto funcionar ?

    Atenciosamente,

  2. #2

    Padrão

    posta seu sshd_config pra gente ver o q pode ser...