Closed fox27374 closed 2 months ago
Adding the certificate generation to the documentation would fix the issue:
cp -rf \
${HOME}/diveintoansible-lab/config/guest_ssh \
${HOME}/diveintoansible-lab/config/root_ssh; \
cp -rf \
${HOME}/diveintoansible-lab/config/guest_ssh.pub \
${HOME}/diveintoansible-lab/config/root_ssh.pub
Late response, given that the Google Cloud Shell environment is typically ephemeral that is why the keys are auto created in that environment vs the local lab which should be persistent, however, good feedback, will think how this could be improved / automated. Maybe a script for those who dont want to wish to repeat this given that the ssh keys section is a learning process.
Hi, when connected to the ubuntu-c machine, its not possible for ansible to build a SSH connection to the hosts. A normal, password bases SSH connection is possible.
There is no private key for the ansible user:
When configuring the username and password in the ansible.cfg or hosts file, I get the following error:
Here some more verbose output:
So either the "PasswordAuthentication" in the ansible config should be set to "yes", or certificates should be generated before the start of the docker containers as it is done in the Google Cloud Shell version.