Hi

Please give permission for your key use below of commands :-

$ sudo chmod  0644  bhadra.pem

Thanks & Regards,
Durgaprasad

On Thu, Aug 2, 2018 at 1:24 PM, Badraj Angirekula <
[email protected]> wrote:

> Hi all I am facing error in aws please help.
>
>
> [root@server2 ~]# ssh -i bhadra.pem [email protected]
> west-2.compute.
>
>                                                     amazonaws.com
> The authenticity of host 'ec2-50-112-6-190.us-west-2.compute.amazonaws.com
> (50.1
>
>                                           12.6.190)' can't be established.
> ECDSA key fingerprint is 1f:1b:6b:13:d2:7a:b5:a4:4b:78:84:b7:98:05:ab:39.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'ec2-50-112-6-190.us-west-2.
> compute.amazonaws.com,50.
>
>                                                               112.6.190'
> (ECDSA) to the list of known hosts.
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Permissions 0644 for 'bhadra.pem' are too open.
> It is required that your private key files are NOT accessible by others.
> This private key will be ignored.
> bad permissions: ignore key: bhadra.pem
> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>
> Thanks & Regards,
> BADRAJ ANGIREKULA
>
> On Thu, Aug 2, 2018 at 11:53 AM, Kai Stian Olstad <
> [email protected]> wrote:
>
>> On 02.08.2018 00:08, John Harmon wrote:
>>
>>> On Wednesday, August 1, 2018 at 3:46:41 PM UTC-6, John Harmon wrote:
>>>
>>>>
>>>> Thanks Matt.  I tried the '| quote' and it did not crash this time.  I
>>>> will look into the template module.
>>>>
>>>>
>>> I couldn't get it to write it with the template module.... but I was able
>>> to write it fine with lineinfile
>>>
>>
>> In your shell task you append to the file, but if replacing the file
>> every time you run ansible-playbook is OK, this should work
>>
>>   - name: Write results
>>     copy:
>>       content: '{{ commands.stdout_lines | to_nice_json }}'
>>       dest: /tmp/dba_commands.txt
>>     delegate_to: localhost
>>
>> --
>> Kai Stian Olstad
>>
>> --
>> 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/ms
>> gid/ansible-project/6aebd3c31e9d0533bfcb4b5a377fd9ae%40olstad.com.
>>
>> 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/CANP%3DzZwR%2B0dHWsMdJgNQ2v7FSBtdUAYLdZTas
> u685gO%3Daq1xqA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CANP%3DzZwR%2B0dHWsMdJgNQ2v7FSBtdUAYLdZTasu685gO%3Daq1xqA%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/CANpiKeHFOrMZS0WENBqEukdV8RyMySQ5rpxpPRpjEAxSQAyMpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to