Hi all,

Thanks for the valuable inputs and directions . 
I was looking for a new approach which I was failing and you all confirmed 
the best and secure way is to have the key as a file with  appropriate 
permissions .  I will be proceeding with the same setup which I already 
have ..



On Tuesday, August 8, 2023 at 4:01:02 AM UTC+5:30 Brian Coca wrote:

> You cannot use a string for an ssh key, it is a file as ansible must
> pass a file to `ssh` command line client (which does not accept a
> string).
> If you only have a string, you have to write the string to a file
> before the connection starts and remove it once it ends. doing this
> securely is not trivial and the reason the ssh connection plugin does
> not attempt to do so.
> -- 
> ----------
> Brian Coca
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0792e9c1-dc6a-4b66-8196-6e2e2ed831a2n%40googlegroups.com.

Reply via email to