O SSH sem senha não funciona mais no macOS

0

Estou usando o ssh sem senha há pelo menos alguns anos, mas faz muito tempo que precisei ssh no meu laptop por algum motivo. Então fiquei chocado ao descobrir que não funciona mais!

Minha chave pública ( id_rsa.pub ) ainda está no meu arquivo authorized_keys como deveria, mas por alguma razão, meu sistema não está mais aceitando. Além disso, quando criei uma nova chave com ssh-keygen e a adicionei a authorized keys , a nova chave também não funcionou. Todos os arquivos na minha pasta .ssh têm 600 de permissões e a própria pasta .ssh tem 700 permissões.

Alguém sabe por que isso pode estar acontecendo? Estou executando o macOS Sierra (10.12.2).

Aqui estão alguns resultados de depuração abaixo, ligeiramente editados para brevidade:

09:38 [mchenja .ssh]$ diff -s id_rsa.pub authorized_keys 
Files id_rsa.pub and authorized_keys are identical

09:39 [mchenja .ssh]$ ssh -v localhost

.
.
.

debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /Users/mchenja/.ssh/known_hosts:2
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/mchenja/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /Users/mchenja/.ssh/id_dsa
debug1: Trying private key: /Users/mchenja/.ssh/id_ecdsa
debug1: Trying private key: /Users/mchenja/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
Password:
    
por mchen.ja 25.01.2017 / 18:46

0 respostas

Tags