boa noite,
Realizei criação de 2 VM com vagrant , uma com ansible 192.168.1.25 e outra normal 192.168.1.22, para conseguir realizar comandos ansible.
Quando realizo o comando para copiar a chave para -> 192.168.1.22
vagrant@ubuntu-bionic:~$ ssh-copy-id -i keys/id_chave.pub vagrant@192.168.1.22
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "keys/id_chave.pub" /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
vagrant@192.168.1.22: Permission denied (publickey).
vagrant@ubuntu-bionic:~$
Retorna a msg vagrant@192.168.1.22: Permission denied (publickey).
Alguém poderia me ajudar nessa questão ?