Is it necessary to distribute the public key to the router/switch in order to use the ansible ping?
I can ssh to the switches using normal ssh but when i use ansible this is the error
ansible all -i inventory -m ping
10.92.38.31 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.92.38.31 port 22: Connection timed out",
"unreachable": true
}
10.92.38.32 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.92.38.32 port 22: Connection timed out",
"unreachable": true
}
192.168.211.1 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.211.1 port 22: Connection timed out",
"unreachable": true
}