NatiSayada/k3s-proxmox-terraform-ansible

Ansible SSH -> Permission denied (publickey)

The-Funk opened this issue · 1 comments

I've been following the instructions to the letter but for some reason I get permission denied for the public key. Oddly enough, one of the hosts (the first one) returns an okay. But everything else returns permission denied (publickey) when trying to make an ssh connection. Have you seen this before with ansible?

The key works to establish an SSH connection if specified on the commandline. Also, would it be better to specify the key in the group_vars since all of the hosts should be using the same key?

I found the issue. It's because my key had a password on it. After removing the password everything works as expected.