Hmm.  Well, by default ESXi hypervisors have ssh turned off.  You need to 
manually go turn it on.  Make sure ssh is running on the 
host.  
https://pubs.vmware.com/vsphere-6-5/index.jsp?topic=%2Fcom.vmware.vcli.getstart.doc%2FGUID-C3A44A30-EEA5-4359-A248-D13927A94CCE.html

HTH

Greg

On Tuesday, 28 August 2018 07:09:58 UTC-7, Bishwajit Samanta wrote:
>
> Hi,
>
>  I am trying to connect esxi 6.5 with ansible. I have copied ssh keys 
> using ssh-copy-id to root id of the esxi server but when i am executing 
> ansible -m ping vmware(ip) it says permission denied. Any idea how to make 
> it work out ?
>
> 192.168.119.129 | UNREACHABLE! => {
>     "changed": false,
>     "msg": "Failed to connect to the host via ssh: Permission denied 
> (publickey,keyboard-interactive).\r\n",
>     "unreachable": true
> }
>
> Sudoers is not there in esxi servers.. am i missing any point 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ec028281-29c6-41c2-ad4d-8305779c0ce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to