Got error while running this “ ansible -m ping all ” command but could be able to ssh

雨燕双飞 提交于 2021-02-11 15:14:40

问题


I am trying to run the command ansible -m ping all from one EC2 instance to another ect2 instance using a different user name than ubuntu. For both EC2 instances, the operating system is Ubuntu 16.04. I can ssh from host to remote. And I get the following error:

fatal: [uat]: UNREACHABLE! => 
{"changed": false, 
"msg": "EOF on stream; last 100 lines received:\nssh_exchange_identification: Connection closed by remote host\r", 
"unreachable": true}

来源:https://stackoverflow.com/questions/62465429/got-error-while-running-this-ansible-m-ping-all-command-but-could-be-able-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!