# Path of "ansible\_ssh\_private\_key\_file" through AWS account

**URL:** <https://forum.ansible.com/t/path-of-ansible-ssh-private-key-file-through-aws-account/20294>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [January 20, 2016, 9:05pm UTC](https://forum.ansible.com/t/path-of-ansible-ssh-private-key-file-through-aws-account/20294 "2016-01-20T21:05:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhotu](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@Bhotu](https://forum.ansible.com/u/Bhotu)\
**Post date:** [January 20, 2016, 9:05pm UTC](https://forum.ansible.com/t/path-of-ansible-ssh-private-key-file-through-aws-account/20294/1 "2016-01-20T21:05:14Z")

</div>

I am currently working with AWS Autoscaling. In order to communicate with the AWS instance, we need ssh keys and that has to be on to your local machine. I need to configure the same server without downloading the keys on to my machine. Is it possible that I can create an inventory and SSH keys can be directly fetched from the AWS account without downloading on to your own machine. ? or can I access that instance with my instance ID or something ?

[awsserver]

55.152.55.55 ansible\_ssh\_host=[ec2-55-152-55-55.compute-1.amazonaws.com](http://ec2-55-152-55-55.compute-1.amazonaws.com) ansible\_ssh\_user=ec2-user ansible\_ssh\_private\_key\_file=/home/ec2-user/fuagent/temp.pem
