turkenh/ansible-interactive-tutorial

host{0,1,2}.example.org ssh authentication fails

Drehmini opened this issue · 0 comments

As the subject states, authentication fails when trying to ssh.

Here's a print out of the terminal

~/workspace $ fping host{0,1,2}.example.org
host0.example.org is alive
host1.example.org is alive
host2.example.org is alive



    Cool!

    These hosts were already provisioned with the ssh key of this node. So you don't have to deal with setting up keys and can directly ssh into any of them as root user.

    Try it and don't forget to get back to continue (run exit once you got there):

    ssh host0.example.org

~/workspace $ ssh host0.example.org
The authenticity of host 'host0.example.org (172.18.0.2)' can't be established.
ECDSA key fingerprint is SHA256:GcQIpCuKx9yOfsw5HrxBUdfnAkquoq+NIm6EMoh1io0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'host0.example.org,172.18.0.2' (ECDSA) to the list of known hosts.
Authentication failed.
~/workspace $ ssh host0.example.org
Authentication failed.
~/workspace $ ssh host1.example.org
The authenticity of host 'host1.example.org (172.18.0.3)' can't be established.
ECDSA key fingerprint is SHA256:GcQIpCuKx9yOfsw5HrxBUdfnAkquoq+NIm6EMoh1io0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'host1.example.org,172.18.0.3' (ECDSA) to the list of known hosts.
Authentication failed.
~/workspace $ ssh host2.example.org
The authenticity of host 'host2.example.org (172.18.0.4)' can't be established.
ECDSA key fingerprint is SHA256:GcQIpCuKx9yOfsw5HrxBUdfnAkquoq+NIm6EMoh1io0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'host2.example.org,172.18.0.4' (ECDSA) to the list of known hosts.
Authentication failed.
~/workspace $

Using a Oracle Linux 7 host with docker Docker version 18.09.1-ol, build e32a1bd