Hi manoj,

ya its oke..just ping
ssh  <ipadress>

and check wheatr ssh is working

then type
 ssh-keygen(in urs and friends)
thn it will ask for a passphrase and all..give it.

then  type

ssh-copy-id < node ipadress>

it will show a message that key added =1

then type command

sudo ansible -m ping all

On 20-Sep-2017 7:11 PM, "Manoj Manchukonda" <[email protected]>
wrote:

> I am very new to the both linux and ansible
>
> On Wed, Sep 20, 2017 at 6:59 PM, Sreekuttan Sree <
> [email protected]> wrote:
>
>> Hi,
>>  run the command in control machine and node machine.
>>
>> ssh-keygen
>>
>> the u will generate ssh key
>>
>> then
>>  ssh-copy-id node machine ipaddress
>>
>> then check
>>
>> sudo ansible -m ping all
>>
>> hope it will work..it works for me.you need to genearte ssh key in both
>> machine.
>>
>> Thank you
>>
>>
>>
>> On 20-Sep-2017 6:55 PM, <[email protected]> wrote:
>>
>>>
>>>
>>> On Monday, September 18, 2017 at 12:03:30 PM UTC+5:30, Sreekuttan Sree
>>> wrote:
>>>>
>>>>
>>>> Hi Team,
>>>>
>>>> Am new to ansible. when am pinging to node machine it shows error like
>>>> this.
>>>> META: ran handlers
>>>> Using module file /usr/lib/python2.7/dist-packag
>>>> es/ansible/modules/system/ping.py
>>>> <192.168.80.129> ESTABLISH SSH CONNECTION FOR USER: ubuntu
>>>> <192.168.80.129> SSH: EXEC ssh -C -o ControlMaster=auto -o
>>>> ControlPersist=60s -o KbdInteractiveAuthentication=no -o
>>>> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
>>>> -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o
>>>> ControlPath=/root/.ansible/cp/827e4da918 192.168.80.129 '/bin/sh -c
>>>> '"'"'echo ~ && sleep 0'"'"''
>>>> <192.168.80.129> (255, '', 'Permission denied
>>>> (publickey,password).\r\n')
>>>> 192.168.80.129 | UNREACHABLE! => {
>>>>     "changed": false,
>>>>     "msg": "Failed to connect to the host via ssh: Permission denied
>>>> (publickey,password).\r\n",
>>>>     "unreachable": true
>>>>
>>>>
>>>
>>> Hi I am also getting the same error, I also had publickey of another
>>> system in .ssh/authorized_keys please help me in this issue
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Ansible Project" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/ansible-project/w27Iqn74RcM/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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/ms
>>> gid/ansible-project/ef951e4b-2d9f-4927-a30b-b7294f55856e%40g
>>> ooglegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/ef951e4b-2d9f-4927-a30b-b7294f55856e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/ansible-project/w27Iqn74RcM/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/ms
>> gid/ansible-project/CAELaYEyjV5R41Bm1%3DmxuJwVi72EbaNxXmyACL
>> QgCpMvL1dH-FA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAELaYEyjV5R41Bm1%3DmxuJwVi72EbaNxXmyACLQgCpMvL1dH-FA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/w27Iqn74RcM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CABV17f8gCB6Anz_xstgDwjT63FQQJn8s7%3DM51%
> 3Du0YF-mNSyPDQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CABV17f8gCB6Anz_xstgDwjT63FQQJn8s7%3DM51%3Du0YF-mNSyPDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAELaYEzxNXQRb01apZH6cbJbJ8_t3jit6b1%2BXYfOGkGEampnJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to