I am new to ansible.I have an ubuntu machine where i have installed Ansible and 3 lxc containers.I am not able to setup ssh connection between the source machine which is ubuntu VM and container.I want to use passwordless authorization between them.
I generate ssh keys through ssh Keygen and trying to add that to lxc container with the below command : ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.0.3.4 It says permission denied. I am not able to login in ssh container via ip address 10.0.3.4 but i can login in there by name db1 for some reason. I changed password Authentication to yes in sshd.config file.