Configurando uma nova gota Digital Ocean com chaves SSH. Quando eu executo ssh-copy-id
isto é o que obtenho:
ssh-copy-id user@012.345.67.89
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
sign_and_send_pubkey: signing failed: agent refused operation
user@012.345.67.89's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'user@012.345.67.89'"
and check to make sure that only the key(s) you wanted were added.
No entanto, quando tento entrar no ssh, isso acontece:
ssh user@012.345.67.89
sign_and_send_pubkey: signing failed: agent refused operation
user@012.345.67.89's password:
Ao inserir a senha, estou conectado perfeitamente, mas isso, obviamente, vai contra o propósito de criar a chave SSH em primeiro lugar. Decidi dar uma olhada no lado do servidor do agente ssh e aqui está o que recebo:
user@012.345.67.89:~# eval `ssh-agent -s`
Agent pid 5715
user@012.345.67.89:~# ssh-add -l
The agent has no identities.
user / .ssh / authorized_keys também contém uma entrada de chave ssh-rsa, mas find -name "keynamehere"
não retorna nada.